aboutsummaryrefslogtreecommitdiff
path: root/templates/deploy.sh.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/deploy.sh.erb')
-rw-r--r--templates/deploy.sh.erb3
1 files changed, 2 insertions, 1 deletions
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