Title: Issue cloning large repositories · Issue #301 · gitpython-developers/GitPython · GitHub
Open Graph Title: Issue cloning large repositories · Issue #301 · gitpython-developers/GitPython
X Title: Issue cloning large repositories · Issue #301 · gitpython-developers/GitPython
Description: GitPython seems to break on large repositories. I've hacked a bit of additional output into the assertion at https://github.com/gitpython-developers/GitPython/blob/master/git/remote.py#L576 : # NOTE: We assume to fetch at least enough pr...
Open Graph Description: GitPython seems to break on large repositories. I've hacked a bit of additional output into the assertion at https://github.com/gitpython-developers/GitPython/blob/master/git/remote.py#L576 : # NOT...
X Description: GitPython seems to break on large repositories. I've hacked a bit of additional output into the assertion at https://github.com/gitpython-developers/GitPython/blob/master/git/remote.py#L576 : #...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/301
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue cloning large repositories","articleBody":"GitPython seems to break on large repositories. I've hacked a bit of additional output into the assertion at https://github.com/gitpython-developers/GitPython/blob/master/git/remote.py#L576 :\n\n```\n # NOTE: We assume to fetch at least enough progress lines to allow matching each fetch head line with it.\n assert len(fetch_info_lines) \u003e= len(fetch_head_info), \"%d \u003c= %d - len(fetch_head_info) \u003c= len(fetch_info_lines) : len(%s) \u003c= len(%s)\" % (\n len(fetch_head_info),\n len(fetch_info_lines),\n fetch_head_info,\n fetch_info_lines)\n```\n\nWhen I run `git.Repo.clone_from()` or `.fetch()`, it produces:\n\n```\n[DEBUG reconcile_git_repos.py:95 - clone_or_fetch() ] Fetching origin in /localfs/users/jantman/B-07815/storyville2.git\nTraceback (most recent call last):\n File \"./reconcile_git_repos.py\", line 168, in \u003cmodule\u003e\n args = parse_args(sys.argv[1:])\n File \"./reconcile_git_repos.py\", line 75, in run\n self.clone_or_fetch(path, url, fetch=fetch)\n File \"./reconcile_git_repos.py\", line 96, in clone_or_fetch\n except git.exc.NoSuchPathError:\n File \"/home/jantman/tickets/B-07815/lib/python2.7/site-packages/git/remote.py\", line 654, in fetch\n res = self._get_fetch_info_from_stderr(proc, progress or RemoteProgress())\n File \"/home/jantman/tickets/B-07815/lib/python2.7/site-packages/git/remote.py\", line 588, in _get_fetch_info_from_stderr\n fetch_info_lines)\nAssertionError: 1944 \u003c= 1716 : len([u\"c415f018\n```\n\n... and then an amazingly long line of output.\n\nThis 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.\n","author":{"url":"https://github.com/jantman","@type":"Person","name":"jantman"},"datePublished":"2015-06-25T16:28:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/301/GitPython/issues/301"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2d43a6a3-e478-e9cd-8d44-01d0c062eb52 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B208:34E9A6:79D898E:A7D3DE2:69677F37 |
| html-safe-nonce | 8b39d7060c564bd0c2b1de5f0f7746871888dc70c4efc99ca61621a283599f8a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjA4OjM0RTlBNjo3OUQ4OThFOkE3RDNERTI6Njk2NzdGMzciLCJ2aXNpdG9yX2lkIjoiODQzOTc4MzI4MzE2MDE4NDg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9e14f9f72cf3b064b4b3687893f7e5ea550cbb19db30c87cb6967415592a6cfc |
| hovercard-subject-tag | issue:91010346 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/301/issue_layout |
| twitter:image | https://opengraph.githubassets.com/daa447fad0ade5a23ac7f12eb5f20df3b1ad7446a500b4452232aa79b1435ddb/gitpython-developers/GitPython/issues/301 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/daa447fad0ade5a23ac7f12eb5f20df3b1ad7446a500b4452232aa79b1435ddb/gitpython-developers/GitPython/issues/301 |
| og:image:alt | GitPython seems to break on large repositories. I've hacked a bit of additional output into the assertion at https://github.com/gitpython-developers/GitPython/blob/master/git/remote.py#L576 : # NOT... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jantman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8476b512fc7cc2cd50b0508d9a12a3288bc58dffb7a06deab34bddef7401f352 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 85da8b412065ebc20dcc2153be541687b12f6e38 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width