schacon / hg-git

mercurial to git bridge, pushed to directly from the hg-git plugin in Hg
GNU General Public License v2.0
620 stars 71 forks source link

fail to clone using ssh from GH #280

Closed powerman closed 9 years ago

powerman commented 9 years ago

I've created new repo and tried to

hg -v clone git+ssh://git@github.com/powerman/myshows.ru-user.js.git

but it hangs after printing this (I had to Ctrl-C it):

destination directory: myshows.ru-user.js
["git-upload-pack '/powerman/myshows.ru-user.js.git'"]
Counting objects: 3, done.
Total 3 (delta 0), reused 0 (delta 0)

At same time this command works just fine:

hg -v clone git://github.com/powerman/myshows.ru-user.js.git

but then I need to edit .hg/hgrc to replace default path to be able to push (btw, hg push is hangs too, but before that it complete it job, so after Ctrl-C and running hg push again it report "no changes found").

I've tried hg-git 0.5.0 and 0.6.0, with dulwich-0.9.4.

P.S. There is no 0.6.0 tag in your repo on github, probably because of another bug in hg-git?

durin42 commented 9 years ago

Probably a bug the way I push to GH. GH is only a mirror, not at all authoritative.

Try with dulwich 0.9.7 please. That should fix the bug. On Jun 15, 2014 5:53 PM, "Alex Efros" notifications@github.com wrote:

I've created new repo and tried to

hg -v clone git+ssh://git@github.com/powerman/myshows.ru-user.js.git

but it hangs after printing this (I had to Ctrl-C it):

destination directory: myshows.ru-user.js ["git-upload-pack '/powerman/myshows.ru-user.js.git'"] Counting objects: 3, done. Total 3 (delta 0), reused 0 (delta 0)

At same time this command works just fine:

hg -v clone git://github.com/powerman/myshows.ru-user.js.git

but then I need to edit .hg/hgrc to replace default path to be able to push (btw, hg push is hangs too, but before that it complete it job, so after Ctrl-C and running hg push again it report "no changes found").

I've tried hg-git 0.5.0 and 0.6.0, with dulwich-0.9.4.

P.S. There is no 0.6.0 tag in your repo on github, probably because of another bug in hg-git?

— Reply to this email directly or view it on GitHub https://github.com/schacon/hg-git/issues/280.

powerman commented 9 years ago

Yes, now everything works ok. Thanks!

tobyink commented 9 years ago

FYI, if upgrading things is not an option, locally patching dulwich/client.py as per this patch should fix the issue.