Skip to content

Commit

Permalink
Merge branch 'pb/bisect'
Browse files Browse the repository at this point in the history
* pb/bisect:
  bisect reset: Leave the tree in usable state if git-checkout failed
  • Loading branch information
Junio C Hamano committed Oct 19, 2006
2 parents 32788ad + 9b709e4 commit 8719f93
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions git-bisect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,12 @@ bisect_reset() {
*)
usage ;;
esac
git checkout "$branch" &&
rm -fr "$GIT_DIR/refs/bisect"
rm -f "$GIT_DIR/refs/heads/bisect" "$GIT_DIR/head-name"
rm -f "$GIT_DIR/BISECT_LOG"
rm -f "$GIT_DIR/BISECT_NAMES"
if git checkout "$branch"; then
rm -fr "$GIT_DIR/refs/bisect"
rm -f "$GIT_DIR/refs/heads/bisect" "$GIT_DIR/head-name"
rm -f "$GIT_DIR/BISECT_LOG"
rm -f "$GIT_DIR/BISECT_NAMES"
fi
}

bisect_replay () {
Expand Down

0 comments on commit 8719f93

Please sign in to comment.