X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-bisect.sh;h=8b3c5858a901619eecd162229f92eb431b3e63f9;hb=c51f6ceed6a9a436f16f8b4f17eab1a3d17cffed;hp=6f6f03966f5905c799a1a67df58e11b0a5f7564c;hpb=daf85d97f8ae4ba462e55c79b1520342028f24d7;p=git.git diff --git a/git-bisect.sh b/git-bisect.sh index 6f6f03966..8b3c5858a 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -13,8 +13,8 @@ git bisect skip [(|)...] mark ... untestable revisions. git bisect next find next bisection to test and check it out. -git bisect reset [] - finish bisection search and go back to branch. +git bisect reset [] + finish bisection search and go back to commit. git bisect visualize show bisect status in gitk. git bisect replay @@ -311,8 +311,8 @@ bisect_reset() { } case "$#" in 0) branch=$(cat "$GIT_DIR/BISECT_START") ;; - 1) git show-ref --verify --quiet -- "refs/heads/$1" || - die "$1 does not seem to be a valid branch" + 1) git rev-parse --quiet --verify "$1^{commit}" > /dev/null || + die "'$1' is not a valid commit" branch="$1" ;; *) usage ;;