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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe22bff4249501fad615b44c807017ac710441c7
4
- data.tar.gz: 7349dd2312fe912edcfd51ef53722a358aafca62
3
+ metadata.gz: b8e6d3448cd55ae179ef1f8ccbd152c74245f33e
4
+ data.tar.gz: bcfe83dde5b9537bfe122b30b523b4904f7a31ff
5
5
  SHA512:
6
- metadata.gz: f453b502f27a7b6d9937d766ded5904204cb6e0931417318c892dfde74c27fbd533ecfbffd2a2b957b9e85d39e2acb32a571aece49a4b7cf8b6a81179d7ac655
7
- data.tar.gz: bc2b6b09aa257671b4acca13cb455dba60a3b7fff1b44e87ed15a7995ee23ebc1f091e8967519f115b133e33c590db8f22431b84b93e9a048b6835e25abd1dec
6
+ metadata.gz: 8286603d186cf38eaadc0fa69efe7ca69c25e06e8c0050c8b389ec12d6111a64744f4d7ce6a742ae780b980e578e7ef5b59128696142efcf88ce0f6846c25ec0
7
+ data.tar.gz: a64139a2fa1aa9f2978371f281952ebf25dd384f639640159af0eca29fe7ec7292efb02273828b7334163970fcca4a9c9c8605bde7c518ba33ce9b70f94855c2
data/.gitmodules CHANGED
@@ -1,3 +1,3 @@
1
1
  [submodule "vendor/git-archive-all"]
2
2
  path = vendor/git-archive-all
3
- url = https://github.com/Kentzo/git-archive-all.git
3
+ url = https://github.com/ydkn/git-archive-all.git
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
- set :current_revision, git_copy_utility.fetch_revision
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
@@ -3,6 +3,6 @@ module Capistrano
3
3
  # GitCopy
4
4
  module GitCopy
5
5
  # gem version
6
- VERSION = '1.0.0'
6
+ VERSION = '1.0.1'
7
7
  end
8
8
  end
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.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-04-22 00:00:00.000000000 Z
11
+ date: 2015-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano