From d4f2537697988643e1ab32a5f29dcd2807102060 Mon Sep 17 00:00:00 2001 From: Michael Iedema Date: Fri, 1 Jul 2016 03:44:20 -0700 Subject: [PATCH] no longer checkout branch heads in submodules, use absolute submodule reference --- clone.sh | 4 +--- switchto.sh | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/clone.sh b/clone.sh index b91ad01..f10b9d1 100755 --- a/clone.sh +++ b/clone.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2014-2015 Range Networks, Inc. +# Copyright 2014-2016 Range Networks, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -31,8 +31,6 @@ do done sayAndDo git checkout master sayAndDo git submodule update --init --recursive --remote - # sayAndDo doesn't like this string at all, can't seem to get the quoting right - git submodule foreach 'git checkout `git config -f $toplevel/.gitmodules submodule.$name.branch`' cd .. echo fi diff --git a/switchto.sh b/switchto.sh index 2bcd774..bc21988 100755 --- a/switchto.sh +++ b/switchto.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2014 Range Networks, Inc. +# Copyright 2014-2016 Range Networks, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -37,7 +37,6 @@ do git checkout $1 git submodule init git submodule update --recursive - git submodule foreach 'git checkout `git config -f $toplevel/.gitmodules submodule.$name.branch`' cd .. echo fi