diff options
| author | Park Ju Hyung <qkrwngud825@gmail.com> | 2019-03-13 13:36:37 +0900 |
|---|---|---|
| committer | GtrCraft <nickvanbokhorst@hotmail.com> | 2022-07-11 16:24:53 +0200 |
| commit | 4d0a8ab2c01d8c1e6f3d010f4906cb52c9e5cb84 (patch) | |
| tree | 3cf99aca4f2d5281791ad83bd720cfd77947a664 | |
| parent | fb30396ba9d74eb13644edacc389db39ed6a7b45 (diff) | |
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>
| -rwxr-xr-x | scripts/setlocalversion | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion index 58feaf30ca5c..0130703958c5 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -76,19 +76,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 |
