Re: Creating new remote branch: Fatal error.. but still seem to have worked

From: Date: Sun, 08 Apr 2012 14:51:43 +0000
Subject: Re: Creating new remote branch: Fatal error.. but still seem to have worked
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
суббота, 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 [email protected]:php/phd.git
> remote:  * [new branch]      PHD_1_1 -> PHD_1_1
> To [email protected]:/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


Thread (1 message)

  • Alexey Shein
« previous php.internals (#59461) next »