diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-11-15 00:42:04 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-16 01:35:58 -0800 |
commit | 3d7cd64cb493e3e30e4398c7b6cd66ee38cb4418 (patch) | |
tree | f1c66cb57e07c5b5feb481d303c5361184a812ff /git-bisect.sh | |
parent | e23cb8c0cc0fb9f18e7e7106e2eec692a7b10044 (diff) | |
download | git-3d7cd64cb493e3e30e4398c7b6cd66ee38cb4418.tar.gz |
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>
Diffstat (limited to 'git-bisect.sh')
-rwxr-xr-x | git-bisect.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-bisect.sh b/git-bisect.sh index 3a210335e7..4b74a7bb42 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -130,7 +130,7 @@ bisect_write() { good|skip) tag="$state"-"$rev" ;; *) die "Bad bisect_write argument: $state" ;; 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" test -z "$nolog" && echo "git-bisect $state $rev" >>"$GIT_DIR/BISECT_LOG" } |