OSDN Git Service

credential: convert "url" attribute into its parsed subparts
[git-core/git.git] / credential.c
index 2c40007..e54753c 100644 (file)
@@ -172,6 +172,8 @@ int credential_read(struct credential *c, FILE *fp)
                } else if (!strcmp(key, "path")) {
                        free(c->path);
                        c->path = xstrdup(value);
+               } else if (!strcmp(key, "url")) {
+                       credential_from_url(c, value);
                }
                /*
                 * Ignore other lines; we don't know what they mean, but