mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-25 10:46:46 -05:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user