From 4696365f7827ba3255eb75a0483a6b0274b709ff Mon Sep 17 00:00:00 2001 From: hesam-init Date: Tue, 21 May 2024 12:00:31 +0330 Subject: [PATCH] feat: git submodule update shell script --- .gitconfig | 2 +- linux-configs | 2 +- sub.sh | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 sub.sh diff --git a/.gitconfig b/.gitconfig index 7b6a202..c084ce6 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,3 +1,3 @@ [submodule] recurse = true -update = rebase +branch = main diff --git a/linux-configs b/linux-configs index e58ed22..692efcf 160000 --- a/linux-configs +++ b/linux-configs @@ -1 +1 @@ -Subproject commit e58ed229fbf3df0f2617bd548a3117f9b93839a0 +Subproject commit 692efcf6c7bcbf447dea4affa9b58f78717f5d12 diff --git a/sub.sh b/sub.sh new file mode 100755 index 0000000..cd53b13 --- /dev/null +++ b/sub.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +git submodule update --recursive --remote + +git submodule foreach git checkout main + +git submodule foreach git pull origin main