oxen_deployer_git 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/oxen_deployer/git.rb +11 -2
- metadata +1 -1
data/lib/oxen_deployer/git.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class OxenDeployer::Git
|
2
2
|
|
3
3
|
# Duh.
|
4
|
-
VERSION = "1.0.
|
4
|
+
VERSION = "1.0.4"
|
5
5
|
|
6
6
|
set :source, OxenDeployer::Git.new
|
7
7
|
set :git_cmd, "git"
|
@@ -17,7 +17,7 @@ class OxenDeployer::Git
|
|
17
17
|
|
18
18
|
if fast_checkout_applicable?(revision, destination)
|
19
19
|
[ "cd #{destination}",
|
20
|
-
"#{git_cmd} checkout
|
20
|
+
"#{git_cmd} checkout #{revision}",
|
21
21
|
"#{git_cmd} fetch",
|
22
22
|
"#{git_cmd} reset --hard #{new_revision}",
|
23
23
|
submodule_cmd,
|
@@ -25,6 +25,15 @@ class OxenDeployer::Git
|
|
25
25
|
"#{git_cmd} checkout deployed-#{revision}",
|
26
26
|
"cd -"
|
27
27
|
].join(" && ")
|
28
|
+
# [ "cd #{destination}",
|
29
|
+
# "#{git_cmd} checkout -q origin",
|
30
|
+
# "#{git_cmd} fetch",
|
31
|
+
# "#{git_cmd} reset --hard #{new_revision}",
|
32
|
+
# submodule_cmd,
|
33
|
+
# "#{git_cmd} branch -f deployed-#{revision} #{revision}",
|
34
|
+
# "#{git_cmd} checkout deployed-#{revision}",
|
35
|
+
# "cd -"
|
36
|
+
# ].join(" && ")
|
28
37
|
else
|
29
38
|
[ "rm -rf #{destination}",
|
30
39
|
"mkdir -p #{destination}",
|