Merge branch 'pb/remote-mirror-config'
* pb/remote-mirror-config: Add a remote.*.mirror configuration option
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user