Title: Assert fails in GitPython 0.3.5 comparing FETCH_HEAD and branches actually fetched · Issue #232 · gitpython-developers/GitPython · GitHub
Open Graph Title: Assert fails in GitPython 0.3.5 comparing FETCH_HEAD and branches actually fetched · Issue #232 · gitpython-developers/GitPython
X Title: Assert fails in GitPython 0.3.5 comparing FETCH_HEAD and branches actually fetched · Issue #232 · gitpython-developers/GitPython
Description: Stack trace: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/fabric/main.py", line 743, in main *args, **kwargs File "/usr/local/lib/python2.7/site-packages/fabric/tasks.py", line 424, in execute results['...
Open Graph Description: Stack trace: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/fabric/main.py", line 743, in main *args, **kwargs File "/usr/local/lib/python2.7/site-packages/fabric/t...
X Description: Stack trace: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/fabric/main.py", line 743, in main *args, **kwargs File "/usr/local/lib/python2.7/site-pa...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/232
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Assert fails in GitPython 0.3.5 comparing FETCH_HEAD and branches actually fetched","articleBody":"Stack trace:\n\n```\nTraceback (most recent call last):\n File \"/usr/local/lib/python2.7/site-packages/fabric/main.py\", line 743, in main\n *args, **kwargs\n File \"/usr/local/lib/python2.7/site-packages/fabric/tasks.py\", line 424, in execute\n results['\u003clocal-only\u003e'] = task.run(*args, **new_kwargs)\n File \"/usr/local/lib/python2.7/site-packages/fabric/tasks.py\", line 174, in run\n return self.wrapped(*args, **kwargs)\n File \"/var/lib/abc/ramble/venom/fabfile.py\", line 286, in deploy_celery\n prepare_deploy(settings, branch_name=branch_name)\n File \"/var/lib/abc/ramble/venom/fabfile.py\", line 195, in prepare_deploy\n repo_install_path=install_path)\n File \"/var/lib/abc/ramble/ramble/utils/git_util.py\", line 31, in set_deploy_context\n remote.fetch()\n File \"/usr/local/lib/python2.7/site-packages/git/remote.py\", line 613, in fetch\n res = self._get_fetch_info_from_stderr(proc, progress or RemoteProgress())\n File \"/usr/local/lib/python2.7/site-packages/git/remote.py\", line 552, in _get_fetch_info_from_stderr\n fetch_info_lines)\nAssertionError: len(....) \u003c= len (...) (elided for length)\n```\n\nI wrote a script to parse the two things that it is trying to compare, from the assert output. FETCH_HEAD right now has 813 lines. The output of git fetch, when I run it manually on the command line (I have not been able to figure out exactly what command it is running, but I'm assuming it's `git fetch --all -v` - is this correct?) has also 813 lines if you ignore the first two lines: `Fetching origin` and `From github.com:org/repo`\n\nHowever, the very last 4 branches in FETCH_HEAD are missing in the GitPython fetch output, the last of which is this line: \n\n`a3a81646dd65dfa4b4412c0f3a5fd4183cbaa2e5 not-for-merge branch 'zendesk' of github.com:org/repo`\n\nIt can't find the matching line in the fetch output (or for the previous 3):\n\n`= [up to date] zendesk -\u003e origin/zendesk`\n\nEven though I see the above lines when I do `git fetch --all -v`, I don't see the last 4 lines in the GitPython assert output. Let me know if you need more info. Is there possibly some length limit? I'm using git 1.8.3.4.\n\nBTW I was using GitPython==0.3.2.RC1 prior to this and it was still failing an assertion, although I'm not sure the assertion was exactly the same. \n","author":{"url":"https://github.com/domino14","@type":"Person","name":"domino14"},"datePublished":"2015-01-14T19:49:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/232/GitPython/issues/232"}
| 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:4f67ab3c-8cf1-4d6e-acd6-87a2eeb51a6b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E596:3B04AD:8536FB:B76018:696A2E1D |
| html-safe-nonce | 4af0ae08b0d607e837f8cf97a324d80b4d11010045e51c2cbab7867d84828593 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTk2OjNCMDRBRDo4NTM2RkI6Qjc2MDE4OjY5NkEyRTFEIiwidmlzaXRvcl9pZCI6IjgwNjEwMTkyODgzNDU2NTI3NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 56c3cfbb966d2c314923365cd42536908cee04f89703378443cd119ba680b001 |
| hovercard-subject-tag | issue:54367484 |
| 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/232/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5fa4ad87be28ed8384795ee5d4e99456dcfe39e240a9e370fb0070a058878f63/gitpython-developers/GitPython/issues/232 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5fa4ad87be28ed8384795ee5d4e99456dcfe39e240a9e370fb0070a058878f63/gitpython-developers/GitPython/issues/232 |
| og:image:alt | Stack trace: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/fabric/main.py", line 743, in main *args, **kwargs File "/usr/local/lib/python2.7/site-packages/fabric/t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | domino14 |
| hostname | github.com |
| expected-hostname | github.com |
| None | ade130928b3890d20ecf9c887468a17e88d5c9a740ea2a85c2c2162e7c58e623 |
| 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 | c00842167ca2e5b13e8171812965d503e925ece6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width