aboutsummaryrefslogtreecommitdiff
path: root/git-shell-commands/set-description
diff options
context:
space:
mode:
Diffstat (limited to 'git-shell-commands/set-description')
-rwxr-xr-xgit-shell-commands/set-description2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-shell-commands/set-description b/git-shell-commands/set-description
index a6e8a50..5b313f6 100755
--- a/git-shell-commands/set-description
+++ b/git-shell-commands/set-description
@@ -44,7 +44,7 @@ if [ -f "$PUBLIC_FILE" ]; then
REPO_URL=$(cat "$PUBLIC_FILE" | tr -d '\n' | xargs)
REMOTE_HOST="${REPO_URL%%:*}"
REMOTE_PATH="${REPO_URL##*:}"
- ssh "$REMOTE_HOST" set-description "$REMOTE_PATH" "$DESCRIPTION"
+ ssh "$REMOTE_HOST" set-description "$REMOTE_PATH" "$(printf '%q' "$DESCRIPTION")"
echo "description updated on remote: $REPO_URL"
fi