summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2018-02-28 20:07:57 +0100
committerJunio C Hamano <gitster@pobox.com>2018-02-28 11:15:51 -0800
commit5790d25881a60a1c3a780e997a59774e48c2c026 (patch)
tree012c51b4d3eb8fef81294f69d363151181c82b53 /builtin/commit.c
parent51d3f43d2fd7f93cd19494eef4aef712fad597c2 (diff)
merge: always roll back lock in `checkout_fast_forward()`
This function originated in builtin/merge.c. It was moved to merge.c in commit db699a8a1f (Move try_merge_command and checkout_fast_forward to libgit.a, 2012-10-26), but was used from sequencer.c even before that. If a problem occurs, the function returns without rolling back the lockfile. Teach it to do so. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions