also let's fix upstream (pull/push) to origin/master
[jprojects-scripts.git] / fix-project-remotes.sh
index 0ceb6d5..a9a9288 100755 (executable)
@@ -204,6 +204,9 @@ for project in ${LIST}; do
                fi
        fi
 
+       echo "$0: Setting upstream to '${GIT_ORIGIN}/${GIT_BRANCH}' ..."
+       git branch --set-upstream-to "${GIT_ORIGIN}/${GIT_BRANCH}"
+
        # Is not an application by default
        IS_APP=""