batdiff/lib: Fix hardcoded git executable name (#35)

Thanks to @lilyball for pointing it out.
This commit is contained in:
Ethan P 2020-06-17 17:53:20 -07:00
parent 3029b6749f
commit 6052d6ee17
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ PROGRAM_VERSION="$({
TOP="$(dirname "$(dirname "${BASH_SOURCE[0]}")")"
printf "%s" "$(cat "${TOP}/version.txt" 2>/dev/null || echo "unknown")"
if [[ -e "${TOP}/.git" ]]; then
printf "%s-git (%s)" "" "$(git -C "${TOP}" rev-parse --short HEAD)"
printf "%s-git (%s)" "" "$("${EXECUTABLE_GIT}" -C "${TOP}" rev-parse --short HEAD)"
fi
})"

View File

@ -164,7 +164,7 @@ main() {
if [[ -f "$file" ]]; then
print_diff "$file"
fi
done < <(git diff --name-only --diff-filter=d)
done < <("${EXECUTABLE_GIT}" diff --name-only --diff-filter=d)
return
fi