Reputation: 37388
i am trying to land my arc patch. I am up-to-date with origin/master, my patch was reviewed and accepted. On teh phabricator site is says: Next Step arc land 'arcpatch-D37'
.
But if i use arc patch D37
and then arc land
i run into problems.
It breaks at the pull:
Switched back to branch ←[1marcpatch-D37←[m.
[2014-04-29 14:06:50] EXCEPTION: (CommandException) Command failed with error #1
28!
COMMAND
git pull --ff-only --no-stat
STDOUT
(empty)
STDERR
fatal: Not possible to fast-forward, aborting.
at [D:\arcanist\libphutil\src\future\exec\ExecFuture.php:398]
I tried pulling first and had no problems/conflicts. No idea what to do/try next.
Upvotes: 2
Views: 5519
Reputation: 2506
Our team started working on a new feature branch and ran into this same error trying to land diffs. The fix for us was to ensure that the feature branch's upstream was set correctly.
git checkout <branch>
git branch --set-upstream-to=origin/<branch>
arc land
Upvotes: 0
Reputation: 4563
Try this:
git stash
(make sure it's your only stash via git stash list
)git checkout master
(switch to your master
branch)git branch -D arcpatch-D37
(delete the old branch)git reset --hard origin/master
(reset your current branch)git pull
(update the master branch)arc patch D37
(create a fresh branch)arc land
(land it!)Upvotes: 8