--- alioth-new-git.txt	2012-12-18 12:37:36.000000000 +0700
+++ alioth-new-git.txt-new	2013-03-17 00:53:24.806989490 +0700
@@ -10,7 +10,7 @@
 	echo "You must be at the root of that local git repository"
 	echo "$0 will use the current folder as the name for the Alioth git repository."
 	echo ""
-	echo "Usage: $0 <destination-project-path-on-alioth>"
+	echo "Usage: $0 <your-alioth-user-name> <destination-project-path-on-alioth>"
 	echo "example: $0 openstack will create a /git/openstack/${PKG_NAME}.git repository"
 	echo "note that you will need to have write access on the destination project,"
 	echo "which means you must be a member of that said project on Alioth."
@@ -19,11 +19,11 @@
 	exit 1
 }
 
-if [ $# != 1 ] ; then
+if [ $# != 2 ] ; then
 	usage
 fi
 
-DEST_PROJECT=$1
+DEST_PROJECT=$2
 
 # Create the tarball and upload it to Alioth
 cd ..
@@ -32,10 +32,10 @@
 echo "===> Building tarball: ${PKG_NAME}.git.tar.gz"
 tar -czf ${PKG_NAME}.git.tar.gz ${PKG_NAME}.git
 echo "===> Uploading ${PKG_NAME}.git.tar.gz to vasks.debian.org"
-scp ${PKG_NAME}.git.tar.gz vasks.debian.org:
+scp ${PKG_NAME}.git.tar.gz $1@vasks.debian.org:
 
 # Uncompress it on Alioth, fix perms and hook
-ssh vasks.debian.org "cd /git/${DEST_PROJECT} && echo '===> Uncompressing ${PKG_NAME}.git.tar.gz in /git/${DEST_PROJECT}' && tar -xzf ~/${PKG_NAME}.git.tar.gz && echo '===> Activating update-server-info hook' &&  mv ${PKG_NAME}.git/hooks/post-update.sample ${PKG_NAME}.git/hooks/post-update && cd /git/${DEST_PROJECT}/${PKG_NAME}.git && git --bare update-server-info && echo '===> Deleting tarball on alioth' && rm ~/${PKG_NAME}.git.tar.gz && echo '===> Fxing g+w unix permissions' && find /git/${DEST_PROJECT}/${PKG_NAME}.git -exec chmod g+w {} \\; && find /git/${DEST_PROJECT}/${PKG_NAME}.git -type d -exec chmod g+s {} \\; && cd /git/${DEST_PROJECT}/${PKG_NAME}.git && git config core.sharedRepository group"
+ssh $1@vasks.debian.org "cd /git/${DEST_PROJECT} && echo '===> Uncompressing ${PKG_NAME}.git.tar.gz in /git/${DEST_PROJECT}' && tar -xzf ~/${PKG_NAME}.git.tar.gz && echo '===> Activating update-server-info hook' &&  mv ${PKG_NAME}.git/hooks/post-update.sample ${PKG_NAME}.git/hooks/post-update && cd /git/${DEST_PROJECT}/${PKG_NAME}.git && git --bare update-server-info && echo '===> Deleting tarball on alioth' && rm ~/${PKG_NAME}.git.tar.gz && echo '===> Fxing g+w unix permissions' && find /git/${DEST_PROJECT}/${PKG_NAME}.git -exec chmod g+w {} \\; && find /git/${DEST_PROJECT}/${PKG_NAME}.git -type d -exec chmod g+s {} \\; && cd /git/${DEST_PROJECT}/${PKG_NAME}.git && git config core.sharedRepository group"
 echo "===> Cleaning local bare copy and tarball"
 rm ${PKG_NAME}.git.tar.gz
 rm -rf ${PKG_NAME}.git
