diff options
-rw-r--r-- | templates/deploy.sh.erb | 3 |
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 |