From: Linus Torvalds Date: Sun, 10 Jul 2005 23:10:21 +0000 (-0700) Subject: Make "git log" exit properly if not in a git archive X-Git-Tag: v0.99~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4bc5fbf82e225aef0694c91458c31515409455e6;p=git.git Make "git log" exit properly if not in a git archive Instead of getting an incomprehensible error message from git-rev-list. --- diff --git a/git-log-script b/git-log-script index feca5e9b7..049d02ea1 100755 --- a/git-log-script +++ b/git-log-script @@ -1,2 +1,3 @@ #!/bin/sh +. git-sh-setup-script || die "Not a git archive" git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less}