oxen_deployer_git 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. data/lib/oxen_deployer/git.rb +14 -3
  2. metadata +1 -1
@@ -1,7 +1,7 @@
1
1
  class OxenDeployer::Git
2
2
 
3
3
  # Duh.
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
 
6
6
  set :source, OxenDeployer::Git.new
7
7
  set :git_cmd, "git"
@@ -27,12 +27,23 @@ class OxenDeployer::Git
27
27
  ].join(" && ")
28
28
  else
29
29
  [ "rm -rf #{destination}",
30
- "#{git_cmd} clone #{repository} #{destination}",
30
+ "mkdir -p #{destination}",
31
31
  "cd #{destination}",
32
- "#{git_cmd} checkout -f -b deployed-#{revision} #{revision}",
32
+ "git init",
33
+ "git remote add -t #{revision} -f origin #{repository}",
34
+ "git checkout #{revision}",
33
35
  submodule_cmd,
34
36
  "cd -"
35
37
  ].join(" && ")
38
+ #
39
+ #
40
+ # [ "rm -rf #{destination}",
41
+ # "#{git_cmd} clone #{repository} #{destination}",
42
+ # "cd #{destination}",
43
+ # "#{git_cmd} checkout -f -b deployed-#{revision} #{revision}",
44
+ # submodule_cmd,
45
+ # "cd -"
46
+ # ].join(" && ")
36
47
  end
37
48
  end
38
49
 
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.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: