{"thread":{"id":"24439","subject":"Git & Paramiko: failed to push some refs to ...","startedAt":"2010-07-20T00:20:51Z","lastAt":"2010-07-20T14:12:02Z","messageCount":3,"participants":["Philip Kimmey","Thomas Rast"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"145832","messageId":"AANLkTil0soA4pLGRZT-jgdOkB3s8qApG_h2a-UW2P_G5@mail.gmail.com","threadId":"24439","inReplyTo":null,"subject":"Git & Paramiko: failed to push some refs to ...","fromName":"Philip Kimmey","fromEmail":"philip.kimmey@gmail.com","sentAt":"2010-07-20T00:20:51Z","receivedAt":"2010-07-20T00:20:51Z","isPatch":false,"sender":{"key":"philip.kimmey@gmail.com","avatar":null},"body":"If you prefer you can see the outline of my question at stackoverflow,\nwith better formatting than e-mail will afford:\n\nhttp://stackoverflow.com/questions/3262161/git-failed-to-push-some-refs-to-with-custom-git-bridge\n\nI am writing a Python ssh server using Paramiko. While it is very\npowerful software, when using it to push git repositories, I run into\nstrange errors. The following is git's output on the client machine.\n\n$ git push origin master\nCounting objects: 5, done.\nDelta compression using up to 2 threads.\nCompressing objects: 100% (2/2), done.\nWriting objects: 100% (3/3), 263 bytes, done.\nTotal 3 (delta 1), reused 0 (delta 0)\nTo git@localhost:/pckprojects/heyworld/\n   d83f744..404debd  master -> master\nerror: failed to push some refs to 'git@localhost:/pckprojects/heyworld/'\n\nFrom the server side I have enough print statements to see the entire\ntransaction, which looks something like this:\n\ngit-receive-pack /home/www/data/project/heyworld/\n\nOUT >>\n00721ee2436e45c80236878132dc87d9e9fee6a81de5 refs/heads/master\\x00\nreport-status delete-refs side-band-64k ofs-delta\\n0000\n\nIN >>\n00841ee2436e45c80236878132dc87d9e9fee6a81de5\n6054b3358787bafd1d96c0fdfbf016d620ccdf09 refs/heads/master\\x00\nreport-status side-band-64k0000\n\nIN >>\nPACK\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\x03\\x96\\x0ex\\x9c\\xa5\\x8cM\\x0e\\xc2\n\\x14\\x06\\xf7\\x9c\\x82\\x0b\\xd8<(?\\x8f\\xc4\\x18\\xf7n\\xbc\\x02\\xc2\\x87%\\x16\\xdb4\\xb8\\xf0\\xf66\\xbd\\x82\\xcb\\x99d\\xa6o\\x80\\x846\\xd9!)\\x1b\\x0b\\xb1\\r1$dO\\x05\\xa6\\xb0\\xa3@\\x06%D<\\xb2\\x16k\\xdc\\xf0\\xeeRa/F\\x07c\\x13\\x93\\x1e\\x1d{V\\xa3\\xce\\x89}\\x0e\\x08\\x05p\\x91U\\x86\\x15\\xf1\\xd3\\xa7e\\x93\\xf7\\xa9\\xceu\\x95\\xb7\\xda\\x1a\\xbe\\xf2\\xbc\\x1e8\\xbc\\x0e\\xbc>[\\xac\\xf3\\x90\\x96v\\x91J\\xfb`X\\xb3V\\xf2D\\x96H\\xec\\xb6\\xd5\\xde\\xf1\\xc7B4,\\xe2\\x07\\xff\\x8aF\\xba\\xaf\\x01x\\x9c340031Q\\xc8H\\xaddP\\xd8P\\xfcmzGg\\x8aY\\xc4\\x8e\\xad\\xb1<\\xca\\x1b\\xa3\\x93\\xee\\xbd\\x05\\x00\\xa8\\xb4\\x0c\\x9by\\xd3\\xfe\\xa0C\\x86fU\\x18\\xbe\\xa5\\x86\\xac5*\\xf7\\x11\\x89\\x8b9$x\\x9c\\x0b\\x8b\\x9a\\x10\\xc6\\x92\\x9b\\x9a\\xcf\\x05\\x00\\x0f\\xb2\\x02\\xe6=\\x12?\\xde\\x1f\\x9a=v\\x0c3c\\xf66\\xc6\\xcc1y\\xe4\\xb8\\xa0\n\nOUT >>\n0030\\x01000eunpack ok\\n009krf/ed/atr0000\n\nCLOSE CONNECTION\n\nThis looks healthy to me, but I'm of course not that familiar with the\ndetails. In addition, as far as I can tell, master does in fact get\nupdated and everything properly, so I have no idea where that error\nmessage is coming from. If I use openssh-server instead of my Paramiko\nserver, the same actions on the client work fine.\n\nThanks for the help!\n\nSincerely,\nPhilip Kimmey\n"},{"id":"145849","messageId":"201007201218.51717.trast@student.ethz.ch","threadId":"24439","inReplyTo":"AANLkTil0soA4pLGRZT-jgdOkB3s8qApG_h2a-UW2P_G5@mail.gmail.com","subject":"Re: Git & Paramiko: failed to push some refs to ...","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2010-07-20T10:18:51Z","receivedAt":"2010-07-20T10:18:51Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Philip Kimmey wrote:\n> If you prefer you can see the outline of my question at stackoverflow,\n> with better formatting than e-mail will afford:\n> \n> http://stackoverflow.com/questions/3262161/git-failed-to-push-some-refs-to-with-custom-git-bridge\n\nThat has a lot more information.  Please include it in the email next\ntime.\n\n> To git@localhost:/pckprojects/heyworld/\n>    d83f744..404debd  master -> master\n> error: failed to push some refs to 'git@localhost:/pckprojects/heyworld/'\n\nA *very* stupid guess:  Are you reporting back the exit status\ncorrectly?\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"},{"id":"145853","messageId":"AANLkTikiM9hjqhH_J9kgQwVUmtKa0TUWTeR-w5O2FkB2@mail.gmail.com","threadId":"24439","inReplyTo":"201007201218.51717.trast@student.ethz.ch","subject":"Re: Git & Paramiko: failed to push some refs to ...","fromName":"Philip Kimmey","fromEmail":"philip.kimmey@gmail.com","sentAt":"2010-07-20T14:12:02Z","receivedAt":"2010-07-20T14:12:02Z","isPatch":false,"sender":{"key":"philip.kimmey@gmail.com","avatar":null},"body":"A *very* good guess in-fact!\n\nI hadn't even thought of that! That is exactly what the problem was. I\nreturn the exit code, and wham! Git is happy.\n\nThank you so much for the help, I've been trying to figure this one\nout for several days!\n\n-Phil Kimmey\n\nOn Tue, Jul 20, 2010 at 5:18 AM, Thomas Rast <trast@student.ethz.ch> wrote:\n> Philip Kimmey wrote:\n>> If you prefer you can see the outline of my question at stackoverflow,\n>> with better formatting than e-mail will afford:\n>>\n>> http://stackoverflow.com/questions/3262161/git-failed-to-push-some-refs-to-with-custom-git-bridge\n>\n> That has a lot more information.  Please include it in the email next\n> time.\n>\n>> To git@localhost:/pckprojects/heyworld/\n>>    d83f744..404debd  master -> master\n>> error: failed to push some refs to 'git@localhost:/pckprojects/heyworld/'\n>\n> A *very* stupid guess:  Are you reporting back the exit status\n> correctly?\n>\n> --\n> Thomas Rast\n> trast@{inf,student}.ethz.ch\n>\n"}]}