oxen_deployer_git 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/oxen_deployer/git.rb +3 -2
  2. metadata +1 -1
@@ -1,7 +1,7 @@
1
1
  class OxenDeployer::Git
2
2
 
3
3
  # Duh.
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
 
6
6
  set :source, OxenDeployer::Git.new
7
7
  set :git_cmd, "git"
@@ -31,7 +31,8 @@ class OxenDeployer::Git
31
31
  "cd #{destination}",
32
32
  "#{git_cmd} init",
33
33
  "#{git_cmd} remote add -t #{revision} -f origin #{repository}",
34
- "#{git_cmd} checkout -f -b deployed-#{revision} #{revision}",
34
+ "#{git_cmd} checkout #{revision}",
35
+ "#{git_cmd} checkout -b deployed-#{revision}",
35
36
  submodule_cmd,
36
37
  "cd -"
37
38
  ].join(" && ")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxen_deployer_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: