Merge pull request #15 from reefab/master

Very small bugfix to make middleman deploy work on ruby 1.8
master
Tom Vaughan 2013-03-01 10:05:30 -08:00
commit 2ba1b86d06
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ EOF
end
#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}`
else
`git checkout -b #{branch}`