Coder Social home page Coder Social logo

githubmirror's People

Contributors

martinmelin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

githubmirror's Issues

Pip install installs incorrect version of GitPython

$ 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

init works great, but sync fails

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

Add support for regular users

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.