Pushing to remote branch while in detached head fails

Bug #1158835 reported by Matthew Treinish
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-review
New
Undecided
Unassigned

Bug Description

When in a detached head state pulled from a remote branch and then trying to use git review to push a change to that same branch fails.

For example doing:

$ git fetch
$ git checkout origin/milestone-proposed
$ git cherry-pick change
$ git review milestone-proposed

Fails with:

Had trouble running git log --color=auto --decorate --oneline milestone-proposed --not remotes/gerrit/milestone-proposed
fatal: ambiguous argument 'milestone-proposed': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions

Revision history for this message
Marcin Cieślak (saperski) wrote :

We have this fixed in git master already (fixes for bug #1144800 as well as change Icd62c2ee359b95877097a57a3b517434d9f7f5e0).

Could not reproduce the problem as described above on git master.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.