config/git: recurse submodules
This commit is contained in:
parent
ce97eb526b
commit
0871ab52c7
|
@ -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]
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue