summaryrefslogtreecommitdiff
path: root/builtin-remote.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-04-25 05:40:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-04-25 05:40:02 (GMT)
commit049a226fa14fb25c03d2146c2f8f184cfea5e5bf (patch)
treef67e46f678cc570a21852e17268afff0ae2120cc /builtin-remote.c
parent57cf5ca3058b4086744f59f1f520a15dfc040bbb (diff)
parent1ce89cc4bb18b0e66f7073562d6634f6a9841335 (diff)
downloadgit-049a226fa14fb25c03d2146c2f8f184cfea5e5bf.zip
git-049a226fa14fb25c03d2146c2f8f184cfea5e5bf.tar.gz
git-049a226fa14fb25c03d2146c2f8f184cfea5e5bf.tar.bz2
Merge branch 'maint'
* maint: remote: create fetch config lines with '+' push: allow unqualified dest refspecs to DWIM doc/git-gc: add a note about what is collected t5516: remove ambiguity test (1) Linked glossary from cvs-migration page write-tree: properly detect failure to write tree objects
Diffstat (limited to 'builtin-remote.c')
-rw-r--r--builtin-remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-remote.c b/builtin-remote.c
index a3ee1ac..93bb84e 100644
--- a/builtin-remote.c
+++ b/builtin-remote.c
@@ -107,6 +107,7 @@ static int add(int argc, const char **argv)
struct path_list_item *item = track.items + i;
strbuf_reset(&buf2);
+ strbuf_addch(&buf2, '+');
if (mirror)
strbuf_addf(&buf2, "refs/%s:refs/%s",
item->path, item->path);