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.
- data/lib/oxen_deployer/git.rb +3 -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.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
|
34
|
+
"#{git_cmd} checkout #{revision}",
|
35
|
+
"#{git_cmd} checkout -b deployed-#{revision}",
|
35
36
|
submodule_cmd,
|
36
37
|
"cd -"
|
37
38
|
].join(" && ")
|