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
|
else
|
||||||
branch=master
|
branch=master
|
||||||
fi ;;
|
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"
|
echo >&2 "$1 does not seem to be a valid branch"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user