diff options
| -rwxr-xr-x | git-shell-commands/new-project | 2 | ||||
| -rwxr-xr-x | git-shell-commands/set-description | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/git-shell-commands/new-project b/git-shell-commands/new-project index 46c6e93..4e2cb15 100755 --- a/git-shell-commands/new-project +++ b/git-shell-commands/new-project @@ -71,7 +71,7 @@ if [ "$PUBLIC" = true ]; then echo "${REMOTE_BASE_URL}/${PROJECT_NAME}" > "${PROJECT_NAME}/public.conf" REMOTE_ARGS=("repos/${PROJECT_NAME}") if [ -n "$DESCRIPTION" ]; then - REMOTE_ARGS+=(--description "$DESCRIPTION") + REMOTE_ARGS+=(--description "$(printf '%q' "$DESCRIPTION")") fi ssh git@treybastian.com new-repo "${REMOTE_ARGS[@]}" echo "public repo: ${REMOTE_BASE_URL}/${PROJECT_NAME}" 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 |
