From 0871ab52c7d053f2d89b94590d9befb4176ac6a0 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Fri, 28 Jun 2024 22:34:15 +0300 Subject: [PATCH] config/git: recurse submodules --- .config/git/config | 1 + .local/bin/scripts/git-p | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/git/config b/.config/git/config index 3a1e42e..84597f2 100644 --- a/.config/git/config +++ b/.config/git/config @@ -26,6 +26,7 @@ defaultBranch = main [push] default = current # Automatically push to branch with matching name + recurseSubmodules = on-demand # Editor [diff] diff --git a/.local/bin/scripts/git-p b/.local/bin/scripts/git-p index 748899f..63e9629 100755 --- a/.local/bin/scripts/git-p +++ b/.local/bin/scripts/git-p @@ -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