We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a8d447f + 475db39 commit 0c97335Copy full SHA for 0c97335
src/transports/http.c
@@ -142,7 +142,7 @@ static int auth_context_match(
142
}
143
144
if (!scheme)
145
- return -1;
+ return 0;
146
147
/* See if authentication has already started for this scheme */
148
git_vector_foreach(&t->auth_contexts, i, c) {
@@ -188,6 +188,9 @@ static int apply_credentials(git_buf *buf, http_subtransport *t)
188
if (auth_context_match(&context, t, credtype_match, &cred->credtype) < 0)
189
return -1;
190
191
+ if (!context)
192
193
+
194
return context->next_token(buf, context, cred);
195
196
0 commit comments