OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
credential: convert "url" attribute into its parsed subparts
[git-core/git.git]
/
credential.c
diff --git
a/credential.c
b/credential.c
index
2c40007
..
e54753c
100644
(file)
--- a/
credential.c
+++ b/
credential.c
@@
-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