Skip to content

Commit d4f2537

Browse files
committed
no longer checkout branch heads in submodules, use absolute submodule reference
1 parent 8fe66ac commit d4f2537

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

clone.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright 2014-2015 Range Networks, Inc.
3+
# Copyright 2014-2016 Range Networks, Inc.
44
#
55
# This program is free software: you can redistribute it and/or modify
66
# it under the terms of the GNU Affero General Public License as published by
@@ -31,8 +31,6 @@ do
3131
done
3232
sayAndDo git checkout master
3333
sayAndDo git submodule update --init --recursive --remote
34-
# sayAndDo doesn't like this string at all, can't seem to get the quoting right
35-
git submodule foreach 'git checkout `git config -f $toplevel/.gitmodules submodule.$name.branch`'
3634
cd ..
3735
echo
3836
fi

switchto.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright 2014 Range Networks, Inc.
3+
# Copyright 2014-2016 Range Networks, Inc.
44
#
55
# This program is free software: you can redistribute it and/or modify
66
# it under the terms of the GNU Affero General Public License as published by
@@ -37,7 +37,6 @@ do
3737
git checkout $1
3838
git submodule init
3939
git submodule update --recursive
40-
git submodule foreach 'git checkout `git config -f $toplevel/.gitmodules submodule.$name.branch`'
4140
cd ..
4241
echo
4342
fi

0 commit comments

Comments
 (0)