From 4bc5fbf82e225aef0694c91458c31515409455e6 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 10 Jul 2005 16:10:21 -0700 Subject: Make "git log" exit properly if not in a git archive Instead of getting an incomprehensible error message from git-rev-list. --- git-log-script | 1 + 1 file changed, 1 insertion(+) diff --git a/git-log-script b/git-log-script index feca5e9b7c..049d02ea14 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} -- cgit v1.2.3