From f3ccf06d10df980f57c01908e5dac376c027fd8a Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Wed, 26 Jun 2019 19:08:39 +0200 Subject: [PATCH] use $git_prefix when set, not the opposite --- git-latexdiff | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/git-latexdiff b/git-latexdiff index 3bb7ed1..cae75c9 100755 --- a/git-latexdiff +++ b/git-latexdiff @@ -596,17 +596,17 @@ if test "$subtree" = 1 && test -n "$git_prefix"; then checkoutroot=$git_prefix # create the build directory (containing the final PDFs) if the param was set if test -n "$use_build_dir" ; then - builddir="$use_build_dir" + builddir="$git_prefix/$use_build_dir" else - builddir="." + builddir="$git_prefix" fi else checkoutroot="." # create the build directory (containing the final PDFs) if the param was set if test -n "$use_build_dir" ; then - builddir="$git_prefix/$use_build_dir" + builddir="$use_build_dir" else - builddir="$git_prefix" + builddir="." fi fi