builtin-revert.c: release index lock when cherry-picking an empty commit
authorChris Johnsen <chris_johnsen@pobox.com>
Sat, 7 Mar 2009 09:30:51 +0000 (03:30 -0600)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Mar 2009 20:21:45 +0000 (12:21 -0800)
commit0d66e95903a5c2567baa61cc7299ce865abe41b1
tree26c62d92b9306e50411587229c561b6f2d7f26c2
parentdcc901bc2926f92558a854430570123b4152451d
builtin-revert.c: release index lock when cherry-picking an empty commit

When a cherry-pick of an empty commit is done, release the lock
held on the index.

The fix is the same as was applied to similar code in 4271666046.

Signed-off-by: Chris Johnsen <chris_johnsen@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-revert.c
t/t3505-cherry-pick-empty.sh [new file with mode: 0755]