Skip to content

Commit

Permalink
Make "git log" exit properly if not in a git archive
Browse files Browse the repository at this point in the history
Instead of getting an incomprehensible error message from git-rev-list.
  • Loading branch information
Linus Torvalds committed Jul 10, 2005
1 parent 0ee19dc commit 4bc5fbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-log-script
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 4bc5fbf

Please sign in to comment.