updated for flag git wanted me to add.
[feisty_meow.git] / scripts / rev_control / push_repo_upstream.sh
index 6210277e7a3eeb29490f3e0bb42c371a3c56906c..338e0bf442282da009c8f77e528a865d13ea13ff 100755 (executable)
@@ -15,8 +15,20 @@ if [ -z "$dir" ]; then
   dir=.
 fi
 
+# this file needs to have our sourceforge password in it.
+PASSWORD_FILE="$HOME/.secrets/sourceforge_password"
+
+if [ ! -f "$PASSWORD_FILE" ]; then
+  echo "This script requires a password stored in the file:"
+  echo "  $PASSWORD_FILE"
+  exit 1
+fi
+
 pushd "$dir"
 git fetch upstream
 git merge upstream/master
-git push origin master
+unset GIT_SSH
+git push origin master <"$PASSWORD_FILE"
 popd
+
+