git_version.sh: Revert accidental change that broke the dirty flag.

This commit is contained in:
David Korth 2020-07-12 23:57:18 -04:00
parent e0947b3f5c
commit a4533f6f68

View File

@ -191,7 +191,7 @@ if [ "x$git_repo_dir" != "x" ] && [ "x${abs_repo_dir}" = "x${abs_srcdir}/.git" ]
# This happens, is OK, and "(no branch)" is what "git branch" prints. # This happens, is OK, and "(no branch)" is what "git branch" prints.
git_branch="(no branch)" git_branch="(no branch)"
fi fi
git_dirty=no git_dirty=yes
# git-1.4 does not understand "git-diff-files --quiet" # git-1.4 does not understand "git-diff-files --quiet"
# git-1.4 does not understand "git-diff-index --cached --quiet HEAD" # git-1.4 does not understand "git-diff-index --cached --quiet HEAD"
if [ "x$($GIT diff-files)" = "x" ] && [ "x$($GIT diff-index --cached HEAD)" = "x" ]; then if [ "x$($GIT diff-files)" = "x" ] && [ "x$($GIT diff-index --cached HEAD)" = "x" ]; then