config/git: recurse submodules

This commit is contained in:
xeruf 2024-06-28 22:34:15 +03:00
parent ce97eb526b
commit 0871ab52c7
2 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,7 @@
defaultBranch = main defaultBranch = main
[push] [push]
default = current # Automatically push to branch with matching name default = current # Automatically push to branch with matching name
recurseSubmodules = on-demand
# Editor # Editor
[diff] [diff]

View File

@ -4,6 +4,6 @@ git-l ||
printf "\e[31;1mError - aborting rebase!\e[0m\n" >&2 && printf "\e[31;1mError - aborting rebase!\e[0m\n" >&2 &&
git rebase --abort; } git rebase --abort; }
if git rev-parse @{upstream} >/dev/null 2>&1 if git rev-parse @{upstream} >/dev/null 2>&1
then git push "$@" then git push --recurse-submodules=on-demand "$@"
else git push --set-upstream "$@" else git push --set-upstream "$@"
fi fi