Skip to content

Commit cf1add2

Browse files
committed
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 <[email protected]>
1 parent b1f8209 commit cf1add2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Diff for: scripts/setlocalversion

-13
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,6 @@ scm_version()
6767
printf -- '-svn%s' "`git svn find-rev $head`"
6868
fi
6969

70-
# Check for uncommitted changes.
71-
# First, with git-status, but --no-optional-locks is only
72-
# supported in git >= 2.14, so fall back to git-diff-index if
73-
# it fails. Note that git-diff-index does not refresh the
74-
# index, so it may give misleading results. See
75-
# git-update-index(1), git-diff-index(1), and git-status(1).
76-
if {
77-
git --no-optional-locks status -uno --porcelain 2>/dev/null ||
78-
git diff-index --name-only HEAD
79-
} | grep -qvE '^(.. )?scripts/package'; then
80-
printf '%s' -dirty
81-
fi
82-
8370
# All done with git
8471
return
8572
fi

0 commit comments

Comments
 (0)