Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
get_remote_group(): use skip_prefix()
author
Michael Haggerty
<mhagger@alum.mit.edu>
Tue, 28 Jul 2015 21:08:21 +0000
(23:08 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 28 Jul 2015 21:39:26 +0000
(14:39 -0700)
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
5f65499
)
diff --git
a/builtin/fetch.c
b/builtin/fetch.c
index bbc2bb885966cad4fead45d266d8db2bff1332b3..262809c78725a2a7924f1f806f40bf1a7577df11 100644
(file)
--- a/
builtin/fetch.c
+++ b/
builtin/fetch.c
@@
-973,8
+973,7
@@
static int get_remote_group(const char *key, const char *value, void *priv)
{
struct remote_group_data *g = priv;
- if (starts_with(key, "remotes.") &&
- !strcmp(key + 8, g->name)) {
+ if (skip_prefix(key, "remotes.", &key) && !strcmp(key, g->name)) {
/* split list by white space */
while (*value) {
size_t wordlen = strcspn(value, " \t\n");