X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=credential-store.c;h=294e77168156225efcb3b6840bc1dd7883c6dcac;hb=abacefe865ea02655b17ba6fad860788c30e7fed;hp=c010497cb21db3c2bc921caf1b34be3e60ff5570;hpb=5da7329e29db93a93099bfee2a81171392341ac8;p=thirdparty%2Fgit.git diff --git a/credential-store.c b/credential-store.c index c010497cb2..294e771681 100644 --- a/credential-store.c +++ b/credential-store.c @@ -24,8 +24,8 @@ static int parse_credential_file(const char *fn, } while (strbuf_getline_lf(&line, fh) != EOF) { - credential_from_url(&entry, line.buf); - if (entry.username && entry.password && + if (!credential_from_url_gently(&entry, line.buf, 1) && + entry.username && entry.password && credential_match(c, &entry)) { found_credential = 1; if (match_cb) {