Make "git log" exit properly if not in a git archive

Instead of getting an incomprehensible error message from git-rev-list.
This commit is contained in:
Linus Torvalds 2005-07-10 16:10:21 -07:00
parent 0ee19dce2c
commit 4bc5fbf82e

View File

@ -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}