minor fix to mirror-shell...
needed if $REPO_BASE contains slashes. (reported/code sent by Dylan Simon)
This commit is contained in:
parent
45a696c419
commit
975a0d05b0
|
@ -16,7 +16,7 @@ then
|
||||||
GL_ADMINDIR=` cd $HOME;perl -e 'do ".gitolite.rc"; print $GL_ADMINDIR'`
|
GL_ADMINDIR=` cd $HOME;perl -e 'do ".gitolite.rc"; print $GL_ADMINDIR'`
|
||||||
GL_BINDIR=`echo $0 | perl -lpe 's/^/$ENV{PWD}\// unless /^\//; s/\/[^\/]+$//;'`
|
GL_BINDIR=`echo $0 | perl -lpe 's/^/$ENV{PWD}\// unless /^\//; s/\/[^\/]+$//;'`
|
||||||
|
|
||||||
SSH_ORIGINAL_COMMAND=`echo $SSH_ORIGINAL_COMMAND | sed -e "s/'/'$REPO_BASE\//"`
|
SSH_ORIGINAL_COMMAND=`echo $SSH_ORIGINAL_COMMAND | sed -e "s:':'$REPO_BASE/:"`
|
||||||
exec git shell -c "$SSH_ORIGINAL_COMMAND"
|
exec git shell -c "$SSH_ORIGINAL_COMMAND"
|
||||||
else
|
else
|
||||||
bash -c "cd $REPO_BASE; $SSH_ORIGINAL_COMMAND"
|
bash -c "cd $REPO_BASE; $SSH_ORIGINAL_COMMAND"
|
||||||
|
|
Loading…
Reference in a new issue