Commit ec9f4107 authored by Willi Rath's avatar Willi Rath

Pull the remote default rather than master

parent 7978b169
...@@ -302,7 +302,10 @@ class GitUpdate(Renderer): ...@@ -302,7 +302,10 @@ class GitUpdate(Renderer):
template = textwrap.dedent( template = textwrap.dedent(
""" """
git checkout master git remote set-head origin -a
default_branch=`git symbolic-ref \\
--short refs/remotes/origin/HEAD | cut -d/ -f2-`
git checkout ${{default_branch}}
git pull git pull
git lfs pull git lfs pull
git lfs track "data/**" git lfs track "data/**"
......
...@@ -101,7 +101,10 @@ source "~/.data_repo_creds/SOTH.cred" ...@@ -101,7 +101,10 @@ source "~/.data_repo_creds/SOTH.cred"
echo "Not doing anything for pre-processing." echo "Not doing anything for pre-processing."
git checkout master git remote set-head origin -a
default_branch=`git symbolic-ref \\
--short refs/remotes/origin/HEAD | cut -d/ -f2-`
git checkout ${{default_branch}}
git pull git pull
git lfs pull git lfs pull
git lfs track "data/**" git lfs track "data/**"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment