public
Description: Python interface for talking to the github API
Clone URL: git://github.com/dustin/py-github.git
githubsync: Set up the remote in mirror mode.
dustin (author)
Tue May 13 00:43:24 -0700 2008
commit  bdb9461f2acc4a3f456cb6c9dfecbd02e909a084
tree    c503605f744dee42f63cad2b1fd71727d34c1181
parent  303d34dfa68167c2cd881aa17c90c833b6dad649
...
17
18
19
20
21
 
 
22
23
24
...
17
18
19
 
 
20
21
22
23
24
0
@@ -17,8 +17,8 @@ def sync(path, user, repo):
0
     if not os.path.exists(p):
0
         url = "git://github.com/%s/%s" % (user.login, repo.name)
0
         subprocess.call(['git', 'clone', '--bare', url, p])
0
- subprocess.call(['git', '--git-dir=' + p, 'remote', 'add', 'origin',
0
- url])
0
+ subprocess.call(['git', '--git-dir=' + p, 'remote', 'add', '--mirror',
0
+ 'origin', url])
0
     subprocess.call(['git', '--git-dir=' + p, 'fetch', '-f'])
0
 
0
 def usage():

Comments

    No one has commented yet.