From df2965f98da233fdefa44b23bb8c90ab1bb6098f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 11 Apr 2013 14:46:43 -0300 Subject: Fixing origin url on deploy --- templates/deploy.sh.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/deploy.sh.erb b/templates/deploy.sh.erb index 4ebbf1d..7fa4103 100644 --- a/templates/deploy.sh.erb +++ b/templates/deploy.sh.erb @@ -37,5 +37,6 @@ fi if [ ! -d "$REPO" ]; then ikiwiki-makerepo git $SITE/"$INSTANCE"_src/ $REPO touch $REPO/git-daemon-export-ok - ( cd $REPO/$NAME.git && git --bare update-server-info ) + ( cd $REPO/$NAME.git && git --bare update-server-info ) + ( cd $SITE/"$INSTANCE"_src && git remote rm origin && git remote add origin gitolite@localhost:$INSTANCE ) fi -- cgit v1.2.3