minor fixups to the "gitweb/daemon from setperms" code...

- fork was not printing a newline after the permissions
  - "add_del_line" to properly handle that damn projects.list file!
This commit is contained in:
Sitaram Chamarty 2010-08-20 22:47:34 +05:30
parent 870983086c
commit 3a8f32ac9b
5 changed files with 25 additions and 13 deletions

View file

@ -19,7 +19,7 @@ git clone --bare -l $GL_REPO_BASE_ABS/$from.git $GL_REPO_BASE_ABS/$to.git
cd $GL_REPO_BASE_ABS/$to.git
echo $GL_USER > gl-creater
git config gitweb.owner "$GL_USER"
( cd $HOME;perl -e 'do ".gitolite.rc"; print $GL_WILDREPOS_DEFPERMS' ) |
( cd $HOME;perl -le 'do ".gitolite.rc"; print $GL_WILDREPOS_DEFPERMS' ) |
SSH_ORIGINAL_COMMAND="setperms $to" $GL_BINDIR/gl-auth-command $GL_USER
cp -R $GL_REPO_BASE_ABS/$from.git/hooks/* $GL_REPO_BASE_ABS/$to.git/hooks