Summary: | "git push --mirror" sends remotes (contrary to the docs) | ||
---|---|---|---|
Product: | Branch 4.1 | Reporter: | Ivan Zakharyaschev <imz> |
Component: | git-core | Assignee: | Nobody's working on this, feel free to take it <nobody> |
Status: | CLOSED WONTFIX | QA Contact: | qa-4.1 <qa-4.1> |
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Hardware: | all | ||
OS: | Linux |
Description
Ivan Zakharyaschev
2008-10-28 16:45:09 MSK
Another workaround: add push = refs/heads/*:refs/heads/* push = refs/tags/*:refs/tags/* to the corresponding "remote" section in .git/config, if you want that "push" to that repositary by default acts as "push --mirror" should to (as described in the manpage). (In reply to comment #0) > Workaround: do not use "--mirror", use "refs/heads/*:refs/heads/* --tags" instead. Amendment: use "+refs/heads/*:refs/heads/* --tags" instead. (In reply to comment #0) > git-core-1.5.5.5-alt1 > But the actual behavior is different: it sends *all* refs, including remotes. It's also true for git-core-1.5.6.5-alt2. A discussion of this issue in the "git" list -- http://osdir.com/ml/git/2009-05/msg00701.html ; Junio Hamano: "But these other people can say "git fetch $here remotes/origin/master" explicitly when fetching from this repository. By mirroring everything under refs/ to its --mirror backup repository, these other people can substitute $here with its --mirror backup repository and expect it to still work. It would be a regression if you stop pushing the refs/remotes hierarchy" (В ответ на комментарий №2) > > Workaround: do not use "--mirror", use "refs/heads/*:refs/heads/* --tags" instead. > > Amendment: use "+refs/heads/*:refs/heads/* --tags" instead. But this won't delete locally deleted refs at the remote repo. :( В 4.1/branch исправления не будут вноситься уже технически (заглушена очередь на сборку), поэтому прошу ошибки, актуальные для sisyphus/p7/t7, перевесить на текущие ветки или сизиф. |