Merge branch 'js/cherry-pick-usability'
* js/cherry-pick-usability: Teach commit about CHERRY_PICK_HEAD bash: teach __git_ps1 about CHERRY_PICK_HEAD Introduce CHERRY_PICK_HEAD t3507: introduce pristine-detach helper
This commit is contained in:
@ -999,6 +999,13 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
|
||||
else
|
||||
die("You have not concluded your merge (MERGE_HEAD exists).");
|
||||
}
|
||||
if (file_exists(git_path("CHERRY_PICK_HEAD"))) {
|
||||
if (advice_resolve_conflict)
|
||||
die("You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists).\n"
|
||||
"Please, commit your changes before you can merge.");
|
||||
else
|
||||
die("You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists).");
|
||||
}
|
||||
resolve_undo_clear();
|
||||
|
||||
if (verbosity < 0)
|
||||
|
Reference in New Issue
Block a user