diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2017-02-06 13:06:02 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2017-02-07 08:56:13 +0000 |
commit | 6d5d766615833d410132fed353316439292272ad (patch) | |
tree | 6bf480ad4706378be7eb6a50321be0a3ea7c405b /tcwg-update-snapshots_ref.yaml | |
parent | 2c09af8425380bc05e7d51c27e0910ede1df28e8 (diff) |
tcwg-update-snapshots_ref: Add remote for linux-next.
If not already present.
Change-Id: I4b55c3eb3671ef1c48b6e220428ce90fcae821d5
Diffstat (limited to 'tcwg-update-snapshots_ref.yaml')
-rw-r--r-- | tcwg-update-snapshots_ref.yaml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tcwg-update-snapshots_ref.yaml b/tcwg-update-snapshots_ref.yaml index e123e04a32..4a8801978f 100644 --- a/tcwg-update-snapshots_ref.yaml +++ b/tcwg-update-snapshots_ref.yaml @@ -86,9 +86,17 @@ # Clone the Linux kernel if not already # present. Subsequent calls will update it. - if [ ! -d $HOME/snapshots-ref-new/linux.git ]; then - git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $HOME/snapshots-ref-new/linux.git + linux_git=$HOME/snapshots-ref-new/linux.git + if [ ! -d ${linux_git} ]; then + git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ${linux_git} fi + + # Add a 'next' remote for linux-next, if not already present + count=$(git -C ${linux_git} remote | grep -c next || true) + if [ $count -eq 0 ]; then + git -C ${linux_git} remote add next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git + fi + popd fi ./tcwg-update-snapshots_ref.sh -v -r $master_machine $machines publishers: |