octopress / deploy

Deployment for Octopress and Jekyll blogs.
MIT License
75 stars 23 forks source link

fix: escape repo string with Regexp.quote #61

Closed mickaelpham closed 9 years ago

mickaelpham commented 9 years ago

Overview

Use Regexp::quote method to escape the @repo variable when checking if the remote deploy repository exists in the git_push method.

Problem

Use Regexp::quote to escape the @repo variable, which is the most likely to contain a character with a special meaning in a regular expression like it was in my case.

imathis commented 9 years ago

Thanks for the thorough explanation! :+1: PRs like this one are aces.

imathis commented 9 years ago

I've just released 1.2.8 with this fix. Thanks again!

mickaelpham commented 9 years ago

You are welcome. Keep rocking with Octopress!