also let's fix upstream (pull/push) to origin/master
[jprojects-scripts.git] / fix-project-remotes.sh
index 0ceb6d52a6c8bfba53f70234abdda71b3393264a..a9a928872552142125d40c053e3658c2b68f1870 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=""