add_submodule.sh: ignore only untracked files in submodules

This commit is contained in:
Ștefan Talpalaru 2021-01-20 20:02:59 +01:00
parent 98b580a00e
commit 53870bc6bc
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 1 deletions

View File

@ -15,6 +15,6 @@ DEST="vendor/${REPO#*/}"
[ -n "$2" ] && DEST="$2" [ -n "$2" ] && DEST="$2"
git submodule add --force https://github.com/${REPO}.git "$DEST" 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 git config -f .gitmodules submodule.${DEST}.branch master