Pushing to remote branch while in detached head fails
Bug #1158835 reported by
Matthew Treinish
This bug report is a duplicate of:
Bug #1144800: git log fails if branch name matches file/dir name.
Edit
Remove
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/
$ git cherry-pick change
$ git review milestone-proposed
Fails with:
Had trouble running git log --color=auto --decorate --oneline milestone-proposed --not remotes/
fatal: ambiguous argument 'milestone-
Use '--' to separate paths from revisions
To post a comment you must log in.
We have this fixed in git master already (fixes for bug #1144800 as well as change Icd62c2ee359b95 877097a57a3b517 434d9f7f5e0) .
Could not reproduce the problem as described above on git master.