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:
280a06f
)
use fetch/merge instead of pull as in git-mirror.sh
author
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Thu, 1 Jul 2010 14:18:35 +0000
(16:18 +0200)
committer
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Thu, 1 Jul 2010 14:18:35 +0000
(16:18 +0200)
module-tools.py
patch
|
blob
|
history
diff --git
a/module-tools.py
b/module-tools.py
index
3db3f88
..
a6a7961
100755
(executable)
--- a/
module-tools.py
+++ b/
module-tools.py
@@
-291,8
+291,9
@@
class GitRepository:
return self.__run_in_repo(c.run_fatal)
def update(self, subdir=None, recursive=None):
- self.__run_command_in_repo("git fetch --tags")
- self.__run_command_in_repo("git pull")
+ self.__run_command_in_repo("git fetch origin --tags")
+ self.__run_command_in_repo("git fetch origin")
+ self.__run_command_in_repo("git merge --ff origin/master")
def to_branch(self, branch, remote=True):
if remote: