capistrano-git-copy 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.
- checksums.yaml +4 -4
- data/.gitmodules +1 -1
- data/CHANGELOG.md +5 -0
- data/lib/capistrano/git_copy/tasks/deploy.cap +3 -1
- data/lib/capistrano/git_copy/utility.rb +1 -2
- data/lib/capistrano/git_copy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b8e6d3448cd55ae179ef1f8ccbd152c74245f33e
|
|
4
|
+
data.tar.gz: bcfe83dde5b9537bfe122b30b523b4904f7a31ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8286603d186cf38eaadc0fa69efe7ca69c25e06e8c0050c8b389ec12d6111a64744f4d7ce6a742ae780b980e578e7ef5b59128696142efcf88ce0f6846c25ec0
|
|
7
|
+
data.tar.gz: a64139a2fa1aa9f2978371f281952ebf25dd384f639640159af0eca29fe7ec7292efb02273828b7334163970fcca4a9c9c8605bde7c518ba33ce9b70f94855c2
|
data/.gitmodules
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 1.0.1 (2015-05-20)
|
|
4
|
+
### Fixed
|
|
5
|
+
- fixed usage of frozen string as branch (e.g. if using ENV values)
|
|
6
|
+
- use working copy of cloned repository to fetch revision
|
|
7
|
+
|
|
3
8
|
## 1.0.0 (2015-04-22)
|
|
4
9
|
### Fixed
|
|
5
10
|
- support application names with whitespaces and other non-path-friendly characters
|
|
@@ -48,7 +48,9 @@ namespace :git_copy do
|
|
|
48
48
|
desc 'Determine the revision that will be deployed'
|
|
49
49
|
task :set_current_revision do
|
|
50
50
|
run_locally do
|
|
51
|
-
|
|
51
|
+
within git_copy_utility.repo_path do
|
|
52
|
+
set :current_revision, git_copy_utility.fetch_revision
|
|
53
|
+
end
|
|
52
54
|
end
|
|
53
55
|
end
|
|
54
56
|
|
|
@@ -153,8 +153,7 @@ module Capistrano
|
|
|
153
153
|
def commit_hash
|
|
154
154
|
return @_commit_hash if @_commit_hash
|
|
155
155
|
|
|
156
|
-
branch = fetch(:branch, 'master')
|
|
157
|
-
branch.strip! if branch.is_a?(String)
|
|
156
|
+
branch = fetch(:branch, 'master').to_s.strip
|
|
158
157
|
|
|
159
158
|
if test! :git, 'rev-parse', "origin/#{branch}", '>/dev/null 2>/dev/null'
|
|
160
159
|
@_commit_hash = capture(:git, 'rev-parse', "origin/#{branch}").strip
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-git-copy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Schwab
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|