Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fetch ignores hub.protocol #112

Closed
greenrd opened this Issue · 3 comments

2 participants

@greenrd
robin@LT9766:~/git/sbt-extras$ cat ~/.gitconfig 
[hub]
        protocol = https
robin@LT9766:~/git/sbt-extras$ git fetch leedm777
github.com[0: 207.97.227.239]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
@greenrd

Workaround:

sed -i -e 's|git:|https:|g' .git/config
@mislav mislav closed this in a315222
@mislav
Owner

I've just added a test that shows that even fetch listens to 'hub.protocol'. Maybe you had "leedm777" remote from before? Try deleting the remote and adding it again with fetch. Then check:

grep leedm777 .git/config
@greenrd

Yeah, that was it, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.