Skip to content
Snippets Groups Projects
Verified Commit fae74aae authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Make sure git is on the right branch when running fetch

parent ec4b922e
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,10 @@ function op {
git remote add upstream "$GIT_UPSTREAM"
git fetch upstream
fi
if [ -n "$BRANCH" ]
then
git checkout "$BRANCH"
fi
git pull
git submodule sync --recursive
git submodule update --init --recursive
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment