From 320116bc62d4c67311a04894507ab5aa616123c7 Mon Sep 17 00:00:00 2001 From: Park Ju Hyung Date: Wed, 13 Mar 2019 13:36:37 +0900 Subject: [PATCH] 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 Signed-off-by: KenHV Signed-off-by: Forenche Signed-off-by: azrim --- scripts/setlocalversion | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/scripts/setlocalversion b/scripts/setlocalversion index ef5665e389e1..aa607baf60ce 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -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