public
Description: Python interface for talking to the github API
Clone URL: git://github.com/dustin/py-github.git
Add -f to fetch since the goal is to sync down, so we don't care about ff.
dustin (author)
Mon Apr 14 23:16:43 -0700 2008
commit  f580b793ad74da3338e62ba16d30d986e95dcbc1
tree    ccf3f4d770a711237cb9b5265c3713e653d56421
parent  8fd8b0393cb5a5f38130e40dd7ba2507c88cd674
...
15
16
17
18
 
19
20
21
...
15
16
17
 
18
19
20
21
0
@@ -15,7 +15,7 @@ def sync(path, user, repo):
0
     p=os.path.join(path, repo.name) + ".git"
0
     print "Syncing %s -> %s" % (repo, p)
0
     if os.path.exists(p):
0
- subprocess.call(['git', '--git-dir=' + p, 'fetch'])
0
+ subprocess.call(['git', '--git-dir=' + p, 'fetch', '-f'])
0
     else:
0
         url = "git://github.com/%s/%s" % (user.login, repo.name)
0
         subprocess.call(['git', 'clone', '--bare', url, p])

Comments

    No one has commented yet.