config/git: recurse submodules
This commit is contained in:
parent
ce97eb526b
commit
0871ab52c7
|
@ -26,6 +26,7 @@
|
|||
defaultBranch = main
|
||||
[push]
|
||||
default = current # Automatically push to branch with matching name
|
||||
recurseSubmodules = on-demand
|
||||
|
||||
# Editor
|
||||
[diff]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue