bisect: further style nitpicks
Fix a few remaining lines that indented with spaces. Also simplify the logic of checking out the original branch and reporting error during "bisect reset". Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -364,14 +364,12 @@ bisect_reset() {
|
|||||||
*)
|
*)
|
||||||
usage ;;
|
usage ;;
|
||||||
esac
|
esac
|
||||||
if ! test -f "$GIT_DIR/BISECT_HEAD"
|
|
||||||
then
|
if ! test -f "$GIT_DIR/BISECT_HEAD" && ! git checkout "$branch" --
|
||||||
if ! git checkout "$branch" --
|
|
||||||
then
|
then
|
||||||
die "$(eval_gettext "Could not check out original HEAD '\$branch'.
|
die "$(eval_gettext "Could not check out original HEAD '\$branch'.
|
||||||
Try 'git bisect reset <commit>'.")"
|
Try 'git bisect reset <commit>'.")"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
bisect_clean_state
|
bisect_clean_state
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user