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

Add upstream link if necessary

parent 211d5c2b
No related branches found
No related tags found
No related merge requests found
...@@ -87,8 +87,16 @@ function op { ...@@ -87,8 +87,16 @@ function op {
fi fi
pushd source > /dev/null pushd source > /dev/null
git remote set-url origin "$GIT"
git fetch origin
if [ -n "$GIT_UPSTREAM" ]
then
git remote set-url upstream "$GIT_UPSTREAM" &> /dev/null ||
git remote add upstream "$GIT_UPSTREAM"
git fetch upstream
fi
git pull git pull
git submodule sync git submodule sync --recursive
git submodule update --init --recursive git submodule update --init --recursive
popd > /dev/null popd > /dev/null
fi fi
......
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