Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add a remote.*.mirror configuration option
[gitweb.git]
/
builtin-remote.c
diff --git
a/builtin-remote.c
b/builtin-remote.c
index a3ee1ac3937b179799fbaa048927c4c8a9963cc9..9d4432bcd5c4104482eca65bf7d06b8b60b8c184 100644
(file)
--- a/
builtin-remote.c
+++ b/
builtin-remote.c
@@
-117,6
+117,13
@@
static int add(int argc, const char **argv)
return 1;
}
+ if (mirror) {
+ strbuf_reset(&buf);
+ strbuf_addf(&buf, "remote.%s.mirror", name);
+ if (git_config_set(buf.buf, "yes"))
+ return 1;
+ }
+
if (fetch && fetch_remote(name))
return 1;