no longer checkout branch heads in submodules, use absolute submodule reference
This commit is contained in:
parent
8fe66ac059
commit
d4f2537697
4
clone.sh
4
clone.sh
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/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
|
# 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
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
|
@ -31,8 +31,6 @@ do
|
||||||
done
|
done
|
||||||
sayAndDo git checkout master
|
sayAndDo git checkout master
|
||||||
sayAndDo git submodule update --init --recursive --remote
|
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 ..
|
cd ..
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/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
|
# 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
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
|
@ -37,7 +37,6 @@ do
|
||||||
git checkout $1
|
git checkout $1
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update --recursive
|
git submodule update --recursive
|
||||||
git submodule foreach 'git checkout `git config -f $toplevel/.gitmodules submodule.$name.branch`'
|
|
||||||
cd ..
|
cd ..
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue