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
[push]
default = current # Automatically push to branch with matching name
recurseSubmodules = on-demand
# Editor
[diff]

View File

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