diff options
Diffstat (limited to 'git-log-script')
-rwxr-xr-x | git-log-script | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git-log-script b/git-log-script index 24d1e83949..9260f92055 100755 --- a/git-log-script +++ b/git-log-script @@ -1,5 +1,4 @@ #!/bin/sh -. git-sh-setup-script || die "Not a git archive" -revs=$(git-rev-parse --revs-only --default HEAD "$@") +revs=$(git-rev-parse --revs-only --default HEAD "$@") || exit [ "$revs" ] || die "No HEAD ref" git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less} |