On Tue, Apr 22, 2008 at 01:19:35PM -0400, Daniel Barkalow wrote:
Yes.
Ambiguity is already handled when we resolve the left-hand side of the
refspec:
$ git branch foo
$ git tag foo
$ git push origin foo
error: src refspec foo matches more than one.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '/home/peff/foo/parent/.git'
I guess you could say something like:
$ git branch dest
$ git tag dest
$ git push origin master:dest
and the "dest" here will become a branch. But that is because it has
nothing to do with your local refs called "dest": the right-hand side is
purely a remote matter. If the remote has an ambiguous "dest", then we
already handle that case:
$ cd ../parent && git branch dest && git tag dest
$ cd ../child && git push origin master:dest
error: dst refspec dest matches more than one.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '/home/peff/foo/parent/.git'
-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html