summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e23cb8c)
raw | patch | inline | side by side (parent: e23cb8c)
author | Junio C Hamano <gitster@pobox.com> | |
Thu, 15 Nov 2007 08:42:04 +0000 (00:42 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 16 Nov 2007 09:35:58 +0000 (01:35 -0800) |
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>
"echo SHA1 >.git/refs/$refname" from the script and replaces it
with update-ref.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-bisect.sh | patch | blob | history |
diff --git a/git-bisect.sh b/git-bisect.sh
index 3a210335e7e2bdcaebf561b23374a32bec2faffd..4b74a7bb421e35627bf749316027707237210e7a 100755 (executable)
--- a/git-bisect.sh
+++ b/git-bisect.sh
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"
}