From 975a0d05b0f318716fa761085afc68543208c113 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 24 Dec 2010 11:25:39 +0530 Subject: [PATCH] minor fix to mirror-shell... needed if $REPO_BASE contains slashes. (reported/code sent by Dylan Simon) --- src/gl-mirror-shell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl-mirror-shell b/src/gl-mirror-shell index 150f132..a18899a 100755 --- a/src/gl-mirror-shell +++ b/src/gl-mirror-shell @@ -16,7 +16,7 @@ then GL_ADMINDIR=` cd $HOME;perl -e 'do ".gitolite.rc"; print $GL_ADMINDIR'` 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" else bash -c "cd $REPO_BASE; $SSH_ORIGINAL_COMMAND"