clone: also configure url for bare clones
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>
Sverre Rabbelier committed
Mar 29, 2010 at 11:48 UTC
df61c8897950759bfe93c2b9d828487bcc7fbb6b
1 file changed
+4
-4
builtin/clone.c
+4
-4
@@ -495,12 +495,12 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
495
git_config_set(key.buf, "true");
496
strbuf_reset(&key);
497
}
498
-
499
- strbuf_addf(&key, "remote.%s.url", option_origin);
500
- git_config_set(key.buf, repo);
501
- strbuf_reset(&key);
498
}
499
500
+ strbuf_addf(&key, "remote.%s.url", option_origin);
501
+ git_config_set(key.buf, repo);
502
+ strbuf_reset(&key);
503
+
504
if (option_reference)
505
setup_reference(git_dir);
506