From 9991f538499f3eb49d2629a7e00cf51ec8f95bed Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 5 Jan 2013 13:16:04 -0600 Subject: [PATCH] bin/git-subup: Always checkout origin/HEAD Some submodule repo's have an origin/HEAD of something other than "master". Force a checkout of origin/HEAD -> master so that the later pull will track updates from the repo's default HEAD. --- bin/git-subup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/git-subup b/bin/git-subup index 04ea0b5..0ae6b9a 100755 --- a/bin/git-subup +++ b/bin/git-subup @@ -4,5 +4,5 @@ cd $(git rev-parse --show-toplevel) git submodule update --init --quiet git submodule sync --quiet -git submodule foreach --quiet git checkout --quiet master -git submodule foreach git pull --prune +git submodule foreach --quiet git checkout --quiet -B master origin/HEAD +git submodule foreach git pull --prune origin -- 2.47.1