Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issue cloning large repositories #301

Closed
@jantman

Description

@jantman

GitPython seems to break on large repositories. I've hacked a bit of additional output into the assertion athttps://github.com/gitpython-developers/GitPython/blob/master/git/remote.py#L576 :

        # NOTE: We assume to fetch at least enough progress lines to allow matching each fetch head line with it.        assert len(fetch_info_lines) >= len(fetch_head_info), "%d <= %d - len(fetch_head_info) <= len(fetch_info_lines) : len(%s) <= len(%s)" % (            len(fetch_head_info),            len(fetch_info_lines),            fetch_head_info,            fetch_info_lines)

When I rungit.Repo.clone_from() or.fetch(), it produces:

[DEBUG reconcile_git_repos.py:95 -       clone_or_fetch() ] Fetching origin in /localfs/users/jantman/B-07815/storyville2.gitTraceback (most recent call last):  File "./reconcile_git_repos.py", line 168, in <module>    args = parse_args(sys.argv[1:])  File "./reconcile_git_repos.py", line 75, in run    self.clone_or_fetch(path, url, fetch=fetch)  File "./reconcile_git_repos.py", line 96, in clone_or_fetch    except git.exc.NoSuchPathError:  File "/home/jantman/tickets/B-07815/lib/python2.7/site-packages/git/remote.py", line 654, in fetch    res = self._get_fetch_info_from_stderr(proc, progress or RemoteProgress())  File "/home/jantman/tickets/B-07815/lib/python2.7/site-packages/git/remote.py", line 588, in _get_fetch_info_from_stderr    fetch_info_lines)AssertionError: 1944 <= 1716 : len([u"c415f018

... and then an amazingly long line of output.

This appears to happen with very large repositories; I honestly can't tell if the issue here is commit messages or the repository size - the one I used for testing has (yeah..... :( ) 4,789 branches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp