oxen_deployer_git 1.0.1 → 1.0.2

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 +4 -4
  2. metadata +2 -2
@@ -1,7 +1,7 @@
1
1
  class OxenDeployer::Git
2
2
 
3
3
  # Duh.
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
 
6
6
  set :source, OxenDeployer::Git.new
7
7
  set :git_cmd, "git"
@@ -29,9 +29,9 @@ class OxenDeployer::Git
29
29
  [ "rm -rf #{destination}",
30
30
  "mkdir -p #{destination}",
31
31
  "cd #{destination}",
32
- "git init",
33
- "git remote add -t #{revision} -f origin #{repository}",
34
- "git checkout #{revision}",
32
+ "#{git_cmd} init",
33
+ "#{git_cmd} remote add -t #{revision} -f origin #{repository}",
34
+ "#{git_cmd} checkout -f -b deployed-#{revision} #{revision}",
35
35
  submodule_cmd,
36
36
  "cd -"
37
37
  ].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.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-07-18 00:00:00.000000000 Z
13
+ date: 2013-10-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: oxen_deployer