From 9d383f8c88868f8af388ac177e6239abd381a217 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Mon, 17 Jul 2017 16:43:03 +0200 Subject: [PATCH] don't call "git archive" with empty pathspec When called from the top of the repository, $git_prefix is empty, and setting checkoutroot to $git_prefix implies calling git with an empty string as pathspec. This behavior was accepted as meaning "all path" in old Git, but now triggers a warning and will soon be completely forbidden. Fixes #28. --- git-latexdiff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-latexdiff b/git-latexdiff index ecb4383..de4d9e2 100755 --- a/git-latexdiff +++ b/git-latexdiff @@ -535,7 +535,7 @@ if test "$ln_untracked" = 1; then ) || true fi -if test "$subtree" = 1; then +if test "$subtree" = 1 && test -n "$git_prefix"; then checkoutroot=$git_prefix else checkoutroot="."