From 53870bc6bccf0f09f9c50a923d1fa1fb235d2db0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Wed, 20 Jan 2021 20:02:59 +0100 Subject: [PATCH] add_submodule.sh: ignore only untracked files in submodules --- scripts/add_submodule.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/add_submodule.sh b/scripts/add_submodule.sh index fe8a9dd..133cb0a 100755 --- a/scripts/add_submodule.sh +++ b/scripts/add_submodule.sh @@ -15,6 +15,6 @@ DEST="vendor/${REPO#*/}" [ -n "$2" ] && DEST="$2" git submodule add --force https://github.com/${REPO}.git "$DEST" -git config -f .gitmodules submodule.${DEST}.ignore dirty +git config -f .gitmodules submodule.${DEST}.ignore untracked git config -f .gitmodules submodule.${DEST}.branch master