From: Vincent Bernat Date: Sat, 17 Oct 2015 17:30:39 +0000 (+0200) Subject: build: ignore untracked files in submodule for version X-Git-Tag: 0.8.0~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=094f37c56cd52f19afd61b5df07858ec3cfe5095;p=thirdparty%2Flldpd.git build: ignore untracked files in submodule for version We can't update the .gitignore of a submodule and we don't want the version to be "dirty" just for that. --- diff --git a/get-version b/get-version index 5c118094..19a2e3eb 100755 --- a/get-version +++ b/get-version @@ -35,7 +35,7 @@ elif [ -e .git ]; then # Check if we are on a dirty checkout. git update-index --refresh -q >/dev/null - dirty=$(git diff-index --name-only HEAD 2>/dev/null) + dirty=$(git diff-index --name-only --ignore-submodules=untracked HEAD 2>/dev/null) if [ -n "$dirty" ]; then version="$version-dirty" fi