summaryrefslogtreecommitdiff
path: root/build-aux/gitlog-to-emacslog
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-04-13 11:12:15 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-04-13 11:12:39 -0700
commit1aebe99145e9ef612cdb272800904e3ba9297196 (patch)
treeadff82b1ea3fc1406907a1fb561e84d8d9a9dd9a /build-aux/gitlog-to-emacslog
parent7d835d8e792664e201ec50ba5f0a260d91e1fff5 (diff)
downloademacs-1aebe99145e9ef612cdb272800904e3ba9297196.tar.gz
Do not require that .git be a directory
Problem reportyed by Phillip Lord. * admin/update_autogen, autogen.sh, build-aux/gitlog-to-emacslog: * configure.ac, make-dist: Do not require that .git be a directory, as 'git worktree' makes it a file and not a directory.
Diffstat (limited to 'build-aux/gitlog-to-emacslog')
-rwxr-xr-xbuild-aux/gitlog-to-emacslog2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/gitlog-to-emacslog b/build-aux/gitlog-to-emacslog
index 5c187f5eae0..6b9cfc145bc 100755
--- a/build-aux/gitlog-to-emacslog
+++ b/build-aux/gitlog-to-emacslog
@@ -68,7 +68,7 @@ if [ -f "$output" ]; then
fi
# If this is not a Git repository, just generate an empty ChangeLog.
-test -d .git || {
+test -e .git || {
>"$output"
exit
}