searchspring / haus

Haus - Local Docker Dev Environments
Apache License 2.0
3 stars 2 forks source link

haus hangs cloning repo if authentication with git repo fails #27

Open ghellings opened 8 years ago

ghellings commented 8 years ago
Gregs-Mac-mini:hauscfg ghellings$ docker run --rm -ti -v $HOME/:/root -v `pwd`:/mnt -e HAUSPATH=`pwd` searchspring/haus cp -R ./ /mnt/
Agent pid 6
Enter passphrase for /root/.ssh/id_dsa: 
Cloning repo hauscfg from git@bitbucket.org:searchspring/haus-yaml.git

Rather than failing, haus hangs trying to clone a repo if authentication with the repo fails.

ghellings commented 8 years ago

Apparently this isn't a bug, but a feature in git2go

https://github.com/libgit2/git2go/issues/246

The remote callback for fetch will loop on the CredentialsCallback until it succeeds ignoring failures. If the credentials callback can break the loop that would allow an error to be displayed. I'm Looking into seeing if I can figure out how to make that happen.