Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pull --rebase: exit early when the working directory is dirty
[gitweb.git]
/
builtin-remote.c
diff --git
a/builtin-remote.c
b/builtin-remote.c
index 93bb84e1d4c762c6c049276202ebc2320447e9c8..8b63619ef08a2ac3d96000908fe4986396ddd6a2 100644
(file)
--- a/
builtin-remote.c
+++ b/
builtin-remote.c
@@
-118,6
+118,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;