middleman-deploy 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -147,11 +147,9 @@ EOF
147
147
  end
148
148
  end
149
149
 
150
- `git fetch origin`
151
-
152
- #if there is a remote branch with that name, reset to it, otherwise just create a new one
153
- if `git branch -r`.split("\n").keep_if{ |r| r =~ Regexp.new(branch,true) }.count > 0
154
- `git reset --hard origin/#{branch}`
150
+ #if there is a branch with that name, switch to it, otherwise create a new one and switch to it
151
+ if `git branch`.split("\n").keep_if{ |r| r =~ Regexp.new(branch,true) }.count > 0
152
+ `git checkout #{branch}`
155
153
  else
156
154
  `git checkout -b #{branch}`
157
155
  end
@@ -1,6 +1,6 @@
1
1
  module Middleman
2
2
  module Deploy
3
3
  PACKAGE = "middleman-deploy"
4
- VERSION = "0.0.8"
4
+ VERSION = "0.0.9"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-01 00:00:00.000000000 Z
12
+ date: 2013-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core