diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-24 09:12:11 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-25 22:49:17 +0100 |
commit | ae2b0f15180d4b044828c836bcab6a990efa5c8e (patch) | |
tree | f316bfd81eaa2064c1d9e01a336eaed8d7a5bd4f /git-bisect.sh | |
parent | parse-remote and ls-remote clean-up. (diff) | |
download | git-ae2b0f15180d4b044828c836bcab6a990efa5c8e.tar.xz git-ae2b0f15180d4b044828c836bcab6a990efa5c8e.zip |
git-sh-setup: die if outside git repository.
Now all the users of this script detect its exit status and die,
complaining that it is outside git repository. So move the code
that dies from all callers to git-sh-setup script.
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 1ab2f187dc..d92993b94e 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -1,5 +1,5 @@ #!/bin/sh -. git-sh-setup || dir "Not a git archive" +. git-sh-setup usage() { echo >&2 'usage: git bisect [start|bad|good|next|reset|visualize] |