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
8ec6e381
Commit
8ec6e381
authored
Dec 15, 2015
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Elphel/mechanical-parts
parents
6f1ddd03
06c39f76
Changes
1
Hide 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 @
8ec6e381
...
@@ -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