mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
Bisect: Use "git-show-ref --verify" when reseting.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
52c813f22f
commit
c0ce981f5e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user