Skip to content

Commit

Permalink
ls-remote: define die() now we do not use git-sh-setup
Browse files Browse the repository at this point in the history
Another interesting "property" is that from inside a git managed
tree, "git-ls-remote ." names the current repository no matter
how deep a subdirectory you are in.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Nov 29, 2005
1 parent 710b709 commit 1abacf3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git-ls-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ usage () {
exit 1;
}

die () {
echo >&2 "$*"
exit 1
}

while case "$#" in 0) break;; esac
do
case "$1" in
Expand Down

0 comments on commit 1abacf3

Please sign in to comment.