Code

bisect: use a detached HEAD to bisect
[git.git] / builtin-remote.c
index 93bb84e1d4c762c6c049276202ebc2320447e9c8..8b63619ef08a2ac3d96000908fe4986396ddd6a2 100644 (file)
@@ -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;