Commit b1eb21a8 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Use HEAD as default submodule remote

parent 4cd11997
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -14,9 +14,8 @@ update submodules:
  script:
    - |
      git submodule foreach --recursive '
        setting="submodule.${name}.auto-update";
        branch=`git config -f ~/.gitmodules ${setting}`;
        git checkout origin/${branch:-master} || exit 1
        branch=`git config -f ~/.gitmodules submodule.${name}.auto-update`;
        git checkout origin/${branch:-HEAD} || exit 1
        (cd ${toplevel}; exec git add ${path})
      '
    - |