Merge branch 'pb/remote-mirror-config'

* pb/remote-mirror-config:
  Add a remote.*.mirror configuration option
This commit is contained in:
Junio C Hamano
2008-05-05 19:15:39 -07:00
8 changed files with 104 additions and 36 deletions

View 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;