Merge pull request #15 from reefab/master

Very small bugfix to make middleman deploy work on ruby 1.8
This commit is contained in:
Tom Vaughan 2013-03-01 10:05:30 -08:00
commit 2ba1b86d06

View file

@ -154,7 +154,7 @@ EOF
end end
#if there is a branch with that name, switch to it, otherwise create a new one and switch to it #if there is a branch with that name, switch to it, otherwise create a new one and switch to it
if `git branch`.split("\n").keep_if{ |r| r =~ Regexp.new(branch,true) }.count > 0 if `git branch`.split("\n").delete_if{ |r| r =~ Regexp.new(branch,true) }.count == 0
`git checkout #{branch}` `git checkout #{branch}`
else else
`git checkout -b #{branch}` `git checkout -b #{branch}`