summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 766ac6a)
raw | patch | inline | side by side (parent: 766ac6a)
author | Sverre Rabbelier <srabbelier@gmail.com> | |
Mon, 29 Mar 2010 16:48:24 +0000 (11:48 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 31 Mar 2010 16:37:26 +0000 (09:37 -0700) |
Without this the 'origin' remote would not be configured, so when
calling remote_get with 'origin' as argument we would get an
unconfigured remote.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
calling remote_get with 'origin' as argument we would get an
unconfigured remote.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c | patch | blob | history |
diff --git a/builtin/clone.c b/builtin/clone.c
index 068d61fd33a00ec867d3e526c1f44ae3a3b3aa43..05be999bd4bee572826652c1cd6eafd61dc873f1 100644 (file)
--- a/builtin/clone.c
+++ b/builtin/clone.c
git_config_set(key.buf, "true");
strbuf_reset(&key);
}
-
- strbuf_addf(&key, "remote.%s.url", option_origin);
- git_config_set(key.buf, repo);
- strbuf_reset(&key);
}
+ strbuf_addf(&key, "remote.%s.url", option_origin);
+ git_config_set(key.buf, repo);
+ strbuf_reset(&key);
+
if (option_reference)
setup_reference(git_dir);