提交 c0ce981f 编写于 作者: C Christian Couder 提交者: Junio C Hamano

Bisect: Use "git-show-ref --verify" when reseting.

Signed-off-by: NChristian Couder <chriscool@tuxfamily.org>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 52c813f2
......@@ -173,7 +173,7 @@ bisect_reset() {
else
branch=master
fi ;;
1) test -f "$GIT_DIR/refs/heads/$1" || {
1) git-show-ref --verify --quiet -- "refs/heads/$1" || {
echo >&2 "$1 does not seem to be a valid branch"
exit 1
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册