Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mechanical-parts
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
mechanical-parts
Commits
06c39f76
Commit
06c39f76
authored
Dec 15, 2015
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed an error with strip function where revisions were cut off
parent
801e7e28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pre-push
githooks/pre-push
+3
-1
No files found.
githooks/pre-push
View file @
06c39f76
...
@@ -29,7 +29,9 @@ error_counter = 0
...
@@ -29,7 +29,9 @@ error_counter = 0
for
file
in
os
.
listdir
(
"."
):
for
file
in
os
.
listdir
(
"."
):
if
(
file
.
endswith
(
".dwb.tar.gz"
)):
if
(
file
.
endswith
(
".dwb.tar.gz"
)):
file_stripped
=
file
.
strip
(
".dwb.tar.gz"
)
#file_stripped=file.strip(".dwb.tar.gz")
file_stripped
=
file
[:
-
len
(
".dwb.tar.gz"
)]
print
"Processing "
+
file_stripped
#download the list of production files
#download the list of production files
if
(
urllib2
.
urlopen
(
remote_url
)
.
read
()
.
find
(
file
)
!=-
1
):
if
(
urllib2
.
urlopen
(
remote_url
)
.
read
()
.
find
(
file
)
!=-
1
):
print
"ERROR("
+
file_stripped
+
"): Already in production"
print
"ERROR("
+
file_stripped
+
"): Already in production"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment