git-bisect: use update-ref to mark good/bad commits
This removes the last instance of making a ref by hand with "echo SHA1 >.git/refs/$refname" from the script and replaces it with update-ref. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e23cb8c0cc
commit
3d7cd64cb4
@ -130,7 +130,7 @@ bisect_write() {
|
|||||||
good|skip) tag="$state"-"$rev" ;;
|
good|skip) tag="$state"-"$rev" ;;
|
||||||
*) die "Bad bisect_write argument: $state" ;;
|
*) die "Bad bisect_write argument: $state" ;;
|
||||||
esac
|
esac
|
||||||
echo "$rev" >"$GIT_DIR/refs/bisect/$tag"
|
git update-ref "refs/bisect/$tag" "$rev"
|
||||||
echo "# $state: "$(git show-branch $rev) >>"$GIT_DIR/BISECT_LOG"
|
echo "# $state: "$(git show-branch $rev) >>"$GIT_DIR/BISECT_LOG"
|
||||||
test -z "$nolog" && echo "git-bisect $state $rev" >>"$GIT_DIR/BISECT_LOG"
|
test -z "$nolog" && echo "git-bisect $state $rev" >>"$GIT_DIR/BISECT_LOG"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user