git://git.onelab.eu
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
131b099
)
handle commit ids while pushing to remote
author
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Wed, 13 Oct 2010 16:03:53 +0000
(18:03 +0200)
committer
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Wed, 13 Oct 2010 16:03:53 +0000
(18:03 +0200)
module-tools.py
patch
|
blob
|
history
diff --git
a/module-tools.py
b/module-tools.py
index
fc2598e
..
189e383
100755
(executable)
--- a/
module-tools.py
+++ b/
module-tools.py
@@
-344,7
+344,7
@@
class GitRepository:
self.__run_command_in_repo("git add .", ignore_errors=True)
self.__run_command_in_repo("git add -u", ignore_errors=True)
self.__run_command_in_repo("git commit -F %s" % logfile, ignore_errors=True)
- if branch == "master":
+ if branch == "master"
or self.__is_commit_id(branch)
:
self.__run_command_in_repo("git push")
else:
self.__run_command_in_repo("git push origin %s:%s" % (branch, branch))