Make "git-checkout" create files with O_EXCL
[gitweb.git] / git-log-script
index 317aa9b0d61a29fd3ac4713079233304c1da4c29..049d02ea1452bca07188cacecb991a56cd97a5f1 100755 (executable)
@@ -1,2 +1,3 @@
 #!/bin/sh
-git-rev-list --pretty HEAD | LESS=-S ${PAGER:-less}
+. git-sh-setup-script || die "Not a git archive"
+git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less}