git-upstream fails to create merge if no local commits are found
Bug #1367985 reported by
Jonathan Harker
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
git-upstream | Status tracked in Trunk | |||||
0.12 |
Fix Released
|
Undecided
|
Unassigned | |||
Trunk |
Fix Released
|
Medium
|
Darragh Bailey |
Bug Description
If there are changes in `upstream/master` that have not yet been merged into `local/master` but no changes being carried locally, then git-upstream will fail to merge upstream changes into the local branch.
Expected result: a simple merge of `upstream/master` into `local/master`
Actual result: no changes are made to `local/master`
% git upstream import --force --into local/master upstream/master
Searching for previous import
Starting import of upstream
Successfully created import branch
There are no local changes to be applied!
Import cancelled
Changed in git-upstream: | |
importance: | Undecided → Low |
importance: | Low → Medium |
status: | New → Confirmed |
Changed in git-upstream: | |
status: | Expired → Confirmed |
Changed in git-upstream: | |
assignee: | nobody → Darragh Bailey (dbailey-k) |
To post a comment you must log in.
I am having trouble replicating the exact situation you are describing. If you could give more detail about how to replicate that would be very helpful.
That said - if you have no local changes then I'm not sure git upstream is the right tool to be using. You ought to be able to just use 'git merge upstream/master local/master' or similar, and there won't be any conflicts. Nothing is being merged or rebased, because there's only a linear history which you're moving your branches along. I wonder if I've misunderstood what you're trying to do...?