Correct documentation for git-push --mirror
This option behaves more like: git push $url +refs/*:refs/* than it does like: git push $url +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/* so we should document it to be more clear about that. Suggested-by: Marek Zawirski <marek.zawirski@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Shawn O. Pearce committed
Jun 20, 2008 at 23:25 UTC
73f03627f4f1b0f66b30fa96a25537f3600cce0b
1 file changed
+2
-1
Documentation/git-push.txt
+2
-1
@@ -67,7 +67,8 @@ nor in any Push line of the corresponding remotes file---see below).
67
68
--mirror::
69
Instead of naming each ref to push, specifies that all
70
- refs under `$GIT_DIR/refs/heads/` and `$GIT_DIR/refs/tags/`
70
+ refs under `$GIT_DIR/refs/` (which includes but is not
71
+ limited to `refs/heads/`, `refs/remotes/`, and `refs/tags/`)
72
be mirrored to the remote repository. Newly created local
73
refs will be pushed to the remote end, locally updated refs
74
will be force updated on the remote end, and deleted refs