Merge pull request #15 from reefab/master
Very small bugfix to make middleman deploy work on ruby 1.8
This commit is contained in:
commit
2ba1b86d06
1 changed files with 1 additions and 1 deletions
|
@ -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}`
|
||||
|
|
Loading…
Add table
Reference in a new issue