суббота, 7 апреля 2012 г. пользователь Hannes Magnusson писал:
> Hello > > I pushed a new branch (with no changes) just now, and got the > following fatal error. > The branch seems to have been pushed just fine though? > > > vagrant@lucid32:~/src/phd$ git checkout -b PHD_1_1 > Switched to a new branch 'PHD_1_1' > vagrant@lucid32:~/src/phd$ git branch -a > * PHD_1_1 > master > remotes/origin/GWYNNE_PLAYS_HERE > remotes/origin/HEAD -> origin/master > remotes/origin/MAIN > remotes/origin/PHD_0_2 > remotes/origin/PHD_0_4 > remotes/origin/PHD_ENTERPRISE > remotes/origin/RESTRUCTURE > remotes/origin/master > remotes/origin/rsync > vagrant@lucid32:~/src/phd$ git diff PHD_1_1..master > vagrant@lucid32:~/src/phd$ git push origin PHD_1_1 > Enter passphrase for key '/home/vagrant/.ssh/id_rsa': > Total 0 (delta 0), reused 0 (delta 0) > remote: Welcome bjori. > remote: Changesets accepted. Thank you for your contribution. > remote: > remote: fatal: ambiguous argument 'refs/heads/MAIN refs/heads/PHD_0_2 > refs/heads/PHD_0_4 refs/heads/PHD_1_1 refs/heads/PHD_ENTERPRISE > refs/heads/RESTRUCTURE refs/heads/master refs/heads/rsync': unknown > revision or path not in the working tree. > remote: Use '--' to separate paths from revisions > remote: Attempting to push to mirror > remote: To g...@github.com:php/phd.git > remote: * [new branch] PHD_1_1 -> PHD_1_1 > To g...@git.php.net:/phd.git > * [new branch] PHD_1_1 -> PHD_1_1 > > > -Hannes > Hi! This could happen if you have a branch and a tag with same names. Karma script should note that situation. -- Regards, Shein Alexey