diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-05-05 19:15:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-05 19:15:39 -0700 |
commit | dc484f2213a34ced5abe5eb968650035204b6035 (patch) | |
tree | 1e1d0d7563cc91bd52ffcb895b9f21a0ed2607c8 /builtin-remote.c | |
parent | 2b3e60c245684fd68bab36c07fee9888ff24f4b4 (diff) | |
parent | 84bb2dfd9f4873c9ca19537efe62219b09ec03bf (diff) | |
download | git-dc484f2213a34ced5abe5eb968650035204b6035.tar.gz git-dc484f2213a34ced5abe5eb968650035204b6035.tar.xz |
Merge branch 'pb/remote-mirror-config'
* pb/remote-mirror-config:
Add a remote.*.mirror configuration option
Diffstat (limited to 'builtin-remote.c')
-rw-r--r-- | builtin-remote.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/builtin-remote.c b/builtin-remote.c index 93bb84e1d..8b63619ef 100644 --- 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; |