Skip to content

Commit

Permalink
Only replace escaped single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
philippbosch committed Oct 25, 2013
1 parent 3058e7a commit 37a9003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitreceive
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ EOF
export RECEIVE_USER=$2
export RECEIVE_FINGERPRINT=$3
# ssh provides the original requested command in $SSH_ORIGINAL_COMMAND
export RECEIVE_REPO="$(echo $SSH_ORIGINAL_COMMAND | awk '{print $2}' | perl -pe 's/(?<!\\)'\''//g' | sed 's/\\//g')"
export RECEIVE_REPO="$(echo $SSH_ORIGINAL_COMMAND | awk '{print $2}' | perl -pe 's/(?<!\\)'\''//g' | sed 's/\\'\''/'\''/g')"
REPO_PATH="$GITHOME/$RECEIVE_REPO"
if [ ! -d $REPO_PATH ]; then
mkdir -p $REPO_PATH
Expand Down

0 comments on commit 37a9003

Please sign in to comment.