no longer checkout branch heads in submodules, use absolute submodule reference

This commit is contained in:
Michael Iedema 2016-07-01 03:44:20 -07:00
parent 8fe66ac059
commit d4f2537697
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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