summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2020-04-19 03:54:57 (GMT)
committerJonathan Nieder <jrnieder@gmail.com>2020-04-19 23:10:58 (GMT)
commite7fab62b736cca3416660636e46f0be8386a5030 (patch)
treed44b7bee236853dcc7f66a29340df9f4746f1b11 /.gitattributes
parentc44088ecc4b0722636e0a305f9608d3047197282 (diff)
downloadgit-e7fab62b736cca3416660636e46f0be8386a5030.zip
git-e7fab62b736cca3416660636e46f0be8386a5030.tar.gz
git-e7fab62b736cca3416660636e46f0be8386a5030.tar.bz2
credential: treat URL with empty scheme as invalid
Until "credential: refuse to operate when missing host or protocol", Git's credential handling code interpreted URLs with empty scheme to mean "give me credentials matching this host for any protocol". Luckily libcurl does not recognize such URLs (it tries to look for a protocol named "" and fails). Just in case that changes, let's reject them within Git as well. This way, credential_from_url is guaranteed to always produce a "struct credential" with protocol and host set. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions