From f58094414a2c4a143197520d12ca6176b253b037 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sun, 30 Mar 2014 14:22:38 -0500 Subject: [PATCH] bin/git-subup: Better compatibility with older Git versions Eliminate --checkout handling. This doesn't play nicely with older versions of Git. --- bin/git-subup | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/git-subup b/bin/git-subup index 54472e6..a5eef36 100755 --- a/bin/git-subup +++ b/bin/git-subup @@ -6,15 +6,11 @@ cd $(git rev-parse --show-toplevel) # Ensure all submodules (and child submodules) are checked-out -git submodule update --init --checkout --recursive +git submodule update --init --recursive # Update submodules' remotes based on .gitmodules git submodule sync -# Forcibly update each submodule's "master" branch to be the current revision -# in case HEAD is detached (e.g. due to "git submodule update --checkout") -git submodule foreach --recursive 'git checkout --quiet -B master' - if [ "$1" = "pull" ]; then # Fetch & pull any new updates from submodule's origin (but *NOT* any child # submodule updates -- those should come from the submodule proper) -- 2.47.1