projects
/
pggit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
686dc59
)
Set upstream when syncing remote git repositories
author
Magnus Hagander
<magnus@hagander.net>
Wed, 28 Dec 2011 14:10:08 +0000
(15:10 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Wed, 28 Dec 2011 14:10:08 +0000
(15:10 +0100)
This was already changed in production, forgot to commit.
reposync.py
patch
|
blob
|
blame
|
history
diff --git
a/reposync.py
b/reposync.py
index 28f38f2d2947157716a3dd4214ae59be5572a024..f8e4aad845beffb255138a8de553975f84c73f3d 100755
(executable)
--- a/
reposync.py
+++ b/
reposync.py
@@
-185,7
+185,7
@@
class SyncMethodGit(SyncMethod):
savedir = os.getcwd()
os.chdir(self.repopath)
del os.environ['GIT_DIR']
- self.system("git fetch
%s
" % self.remoteurl)
+ self.system("git fetch
-u %s master:master
" % self.remoteurl)
os.chdir(savedir)
if __name__ == "__main__":