capistrano-gity 0.1.0 → 0.2.0
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.
- data/VERSION +1 -1
- data/lib/capistrano-gity.rb +3 -9
- metadata +12 -5
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.2.0
|
data/lib/capistrano-gity.rb
CHANGED
|
@@ -7,12 +7,9 @@ Capistrano::Configuration.instance.load do
|
|
|
7
7
|
set :remote, git_remote.empty? ? 'origin' : git_remote
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
desc "
|
|
10
|
+
desc "Push HEAD to the central repo"
|
|
11
11
|
task :push do
|
|
12
|
-
|
|
13
|
-
system "git branch -f #{branch} HEAD"
|
|
14
|
-
end
|
|
15
|
-
system "git push --force #{remote} #{branch}"
|
|
12
|
+
system "git push --force #{remote} HEAD:#{branch}"
|
|
16
13
|
end
|
|
17
14
|
|
|
18
15
|
task :sync do
|
|
@@ -45,10 +42,7 @@ Capistrano::Configuration.instance.load do
|
|
|
45
42
|
cap deploy
|
|
46
43
|
|
|
47
44
|
Under the hood:
|
|
48
|
-
*
|
|
49
|
-
git branch -f #{branch} <desired-commit>
|
|
50
|
-
* Finally send changes to the central repo:
|
|
51
|
-
git push --force #{remote}} #{branch} (or cap gity:push)
|
|
45
|
+
* git push --force #{remote} HEAD:#{branch} (or cap gity:push)
|
|
52
46
|
* cap deploy
|
|
53
47
|
|
|
54
48
|
Troubleshooting:
|
metadata
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-gity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
4
|
+
prerelease: false
|
|
5
|
+
segments:
|
|
6
|
+
- 0
|
|
7
|
+
- 2
|
|
8
|
+
- 0
|
|
9
|
+
version: 0.2.0
|
|
5
10
|
platform: ruby
|
|
6
11
|
authors:
|
|
7
12
|
- Skroutz.gr Team
|
|
@@ -9,7 +14,7 @@ autorequire:
|
|
|
9
14
|
bindir: bin
|
|
10
15
|
cert_chain: []
|
|
11
16
|
|
|
12
|
-
date: 2010-03-
|
|
17
|
+
date: 2010-03-17 00:00:00 +02:00
|
|
13
18
|
default_executable:
|
|
14
19
|
dependencies: []
|
|
15
20
|
|
|
@@ -42,18 +47,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
42
47
|
requirements:
|
|
43
48
|
- - ">="
|
|
44
49
|
- !ruby/object:Gem::Version
|
|
50
|
+
segments:
|
|
51
|
+
- 0
|
|
45
52
|
version: "0"
|
|
46
|
-
version:
|
|
47
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
54
|
requirements:
|
|
49
55
|
- - ">="
|
|
50
56
|
- !ruby/object:Gem::Version
|
|
57
|
+
segments:
|
|
58
|
+
- 0
|
|
51
59
|
version: "0"
|
|
52
|
-
version:
|
|
53
60
|
requirements: []
|
|
54
61
|
|
|
55
62
|
rubyforge_project:
|
|
56
|
-
rubygems_version: 1.3.
|
|
63
|
+
rubygems_version: 1.3.6
|
|
57
64
|
signing_key:
|
|
58
65
|
specification_version: 3
|
|
59
66
|
summary: Git helpers for capistrano deployments
|