From 8e3c3b7b87cd2d2c1612f4955731a5e64de57ce2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 17 Oct 2015 19:30:39 +0200 Subject: [PATCH] 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. --- get-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5