much nicer now; supports a path to push upstream.
authorChris Koeritz <fred@gruntose.com>
Sun, 17 Feb 2013 19:53:22 +0000 (14:53 -0500)
committerChris Koeritz <fred@gruntose.com>
Sun, 17 Feb 2013 19:53:22 +0000 (14:53 -0500)
scripts/rev_control/push_repo_upstream.sh

index 3d69f95f63f6cec3c853e122c07091668d9938dd..6210277e7a3eeb29490f3e0bb42c371a3c56906c 100755 (executable)
 # rats: how did i set up that archive?
 #       we need to have those steps someplace.
 
+dir="$1"; shift
+if [ -z "$dir" ]; then
+  dir=.
+fi
+
+pushd "$dir"
 git fetch upstream
 git merge upstream/master
-
 git push origin master
-
+popd