From 6834791d3b0f3b5d0d806b025b40ca1e84f3ba35 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Thu, 10 Jan 2013 21:36:52 -0600 Subject: [PATCH] bin/git-subup: Avoid detached HEAD --- bin/git-subup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-subup b/bin/git-subup index 0ae6b9a..aec9632 100755 --- a/bin/git-subup +++ b/bin/git-subup @@ -2,7 +2,7 @@ # Checkout and update source for all registered submodules (.gitmodules) cd $(git rev-parse --show-toplevel) -git submodule update --init --quiet +git submodule update --init --checkout --quiet git submodule sync --quiet git submodule foreach --quiet git checkout --quiet -B master origin/HEAD git submodule foreach git pull --prune origin -- 2.47.1