Browse Source

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.
master
Matthieu Moy 8 years ago
parent
commit
9d383f8c88
  1. 2
      git-latexdiff

2
git-latexdiff

@ -535,7 +535,7 @@ if test "$ln_untracked" = 1; then
) || true ) || true
fi fi
if test "$subtree" = 1; then
if test "$subtree" = 1 && test -n "$git_prefix"; then
checkoutroot=$git_prefix checkoutroot=$git_prefix
else else
checkoutroot="." checkoutroot="."

Loading…
Cancel
Save