martinmelin / githubmirror Goto Github PK
View Code? Open in Web Editor NEWA small script to keep a local bare copy of every repo in a Github organization, for faster cloning and deploys
A small script to keep a local bare copy of every repo in a Github organization, for faster cloning and deploys
$ pip install githubmirror
Downloading/unpacking githubmirror
Downloading githubmirror-0.3.5.tar.gz
Running setup.py egg_info for package githubmirror
Downloading/unpacking GitPython (from githubmirror)
Downloading GitPython-0.1.7.tar.gz
Running setup.py egg_info for package GitPython
Downloading/unpacking PyGithub (from githubmirror)
Downloading PyGithub-1.17.0.tar.gz (1.9MB): 1.9MB downloaded
Running setup.py egg_info for package PyGithub
Downloading/unpacking docopt (from githubmirror)
Downloading docopt-0.6.1.tar.gz
Running setup.py egg_info for package docopt
Installing collected packages: githubmirror, GitPython, PyGithub, docopt
Running setup.py install for githubmirror
Installing github-mirror script to /home/githubmirror/github-mirror/bin
Running setup.py install for GitPython
Running setup.py install for PyGithub
Running setup.py install for docopt
Here's what I'm seeing:
(Gazelle - Utility:util_gemserver_clone)(/apps/github-mirror)(0)# github-mirror init secondrotation
Please give me a Github API token, create on https://github.com/settings/applications : [REDACTED by mm]
(Gazelle - Utility:util_gemserver_clone)(/apps/github-mirror)(0)#
(Gazelle - Utility:util_gemserver_clone)(/apps/github-mirror)(0)# github-mirror sync secondrotation
Fetching [email protected]:secondrotation/pcp_middleware.git in /mnt/ebs/apps/github-mirror/pcp_middleware.git...
Traceback (most recent call last):
File "/usr/local/bin/github-mirror", line 9, in <module>
load_entry_point('githubmirror==0.2.4', 'console_scripts', 'github-mirror')()
File "/usr/local/lib/python2.6/dist-packages/githubmirror/__init__.py", line 40, in cmd
main.fetch(repos, workdir)
File "/usr/local/lib/python2.6/dist-packages/githubmirror/main.py", line 90, in fetch
remote.fetch(progress=FetchProgress())
File "/usr/local/lib/python2.6/dist-packages/git/remote.py", line 593, in fetch
return self._get_fetch_info_from_stderr(proc, progress or RemoteProgress())
File "/usr/local/lib/python2.6/dist-packages/git/remote.py", line 535, in _get_fetch_info_from_stderr
fp = open(join(self.repo.git_dir, 'FETCH_HEAD'),'r')
IOError: [Errno 2] No such file or directory: u'/mnt/ebs/apps/github-mirror/pcp_middleware.git/FETCH_HEAD'
(Gazelle - Utility:util_gemserver_clone)(/apps/github-mirror)(1)#
This is on an Ubuntu 10.04.1 LTS system running Python 2.6.5
The project currently does not work properly when trying to mirror a user instead of an organization. It simply returns
Github error: 404 {u'documentation_url': u'https://developer.github.com/v3', u'message': u'Not Found'}
when supplied with a regular user.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.