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>
This commit is contained in:
Junio C Hamano
2005-11-24 00:12:11 -08:00
parent e8cc80d039
commit ae2b0f1518
26 changed files with 34 additions and 31 deletions

View File

@ -3,7 +3,7 @@
# Copyright (c) 2005 Junio C Hamano
#
. git-sh-setup || die "Not a git repository"
. git-sh-setup
dc </dev/null 2>/dev/null || {
# This is not a real DC at all -- it just knows how