summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4491e62)
raw | patch | inline | side by side (parent: 4491e62)
author | Daniel Barkalow <barkalow@iabervon.org> | |
Fri, 28 Sep 2007 23:34:17 +0000 (19:34 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 30 Sep 2007 05:11:52 +0000 (22:11 -0700) |
The config item for a refspec side and the ref name that it matches
aren't necessarily character-for-character identical. We actually want
to merge a ref by default if: there is no per-branch config, it is the
found result of looking for the match for the first refspec, and the
first refspec is not a pattern. Beyond that, anything that
get_fetch_map() thinks matches is fine.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
aren't necessarily character-for-character identical. We actually want
to merge a ref by default if: there is no per-branch config, it is the
found result of looking for the match for the first refspec, and the
first refspec is not a pattern. Beyond that, anything that
get_fetch_map() thinks matches is fine.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch.c | patch | blob | history |
diff --git a/builtin-fetch.c b/builtin-fetch.c
index 2f639ccef27e389b86829b79c10ab25af4efe0f7..ac68ff592eb10652fccdcf74f27763b1e2254f5e 100644 (file)
--- a/builtin-fetch.c
+++ b/builtin-fetch.c
remote->fetch[i].dst[0])
*autotags = 1;
if (!i && !has_merge && ref_map &&
- !strcmp(remote->fetch[0].src, ref_map->name))
+ !remote->fetch[0].pattern)
ref_map->merge = 1;
}
if (has_merge)