3 # this script updates a "relay" repository (let us call it B) that is used
4 # to mirror things from repository A (the source) into another repository C
6 # this is useful, for example, to maintain one's own master git archive for
7 # a codebase, but also push updates for that codebase into a sourceforge git
10 # rats: how did i set up that archive?
11 # we need to have those steps someplace.
14 if [ -z "$dir" ]; then
18 # this file needs to have our sourceforge password in it.
19 PASSWORD_FILE="$HOME/.secrets/sourceforge_password"
21 if [ ! -f "$PASSWORD_FILE" ]; then
22 echo "This script requires a password stored in the file:"
23 echo " $PASSWORD_FILE"
29 git merge upstream/master
31 git push origin master <"$PASSWORD_FILE"