diff options
author | Jeff King <peff@peff.net> | 2011-03-30 15:52:52 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-30 13:47:51 -0700 |
commit | 13fc2c1877a50dde5ea43e2f37420ebfb2f7dad1 (patch) | |
tree | 1058e79a0b64aef224659118fbcc88c9ff835661 /Documentation/merge-config.txt | |
parent | HOME must be set before calling git-init when creating test repositories (diff) | |
download | tgif-13fc2c1877a50dde5ea43e2f37420ebfb2f7dad1.tar.xz |
remote: disallow some nonsensical option combinations
It doesn't make sense to use "-m" on a mirror, since "-m"
sets up the HEAD symref in the remotes namespace, but with
mirror, we are by definition not using a remotes namespace.
Similarly, it does not make much sense to specify refspecs
with --mirror. For a mirror you plan to push to, those
refspecs will be ignored. For a mirror you are fetching
from, there is no point in mirroring, since the refspec
specifies everything you want to grab.
There is one case where "--mirror -t <X>" would be useful.
Because <X> is used as-is in the refspec, and because we
append it to to refs/, you could mirror a subset of the
hierarchy by doing:
git remote add --mirror -t 'tags/*'
But using anything besides a single branch as an argument to
"-t" is not documented and only happens to work, so closing
it off is not a serious regression.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/merge-config.txt')
0 files changed, 0 insertions, 0 deletions