setlocalversion: Don't check for uncommitted changes

I ofter push after the build is done and I hate seeing "-dirty"

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: KenHV <yo@kenharris.xyz>
Signed-off-by: Forenche <prahul2003@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
Park Ju Hyung 2019-03-13 13:36:37 +09:00 committed by azrim
parent 91c9cbfce6
commit 320116bc62
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C

View File

@ -84,19 +84,6 @@ scm_version()
printf -- '-svn%s' "`git svn find-rev $head`"
fi
# Check for uncommitted changes.
# First, with git-status, but --no-optional-locks is only
# supported in git >= 2.14, so fall back to git-diff-index if
# it fails. Note that git-diff-index does not refresh the
# index, so it may give misleading results. See
# git-update-index(1), git-diff-index(1), and git-status(1).
if {
git --no-optional-locks status -uno --porcelain 2>/dev/null ||
git diff-index --name-only HEAD
} | grep -qvE '^(.. )?scripts/package'; then
printf '%s' -dirty
fi
# All done with git
return
fi