capistrano-git-copy 1.0.1 → 1.0.2

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: b8e6d3448cd55ae179ef1f8ccbd152c74245f33e
4
- data.tar.gz: bcfe83dde5b9537bfe122b30b523b4904f7a31ff
3
+ metadata.gz: 7aec6507f638bcb5e8ddf791bad63dde7e2f93b6
4
+ data.tar.gz: 1a39e03172e841a9fff5095b90d21441e8bd1b96
5
5
  SHA512:
6
- metadata.gz: 8286603d186cf38eaadc0fa69efe7ca69c25e06e8c0050c8b389ec12d6111a64744f4d7ce6a742ae780b980e578e7ef5b59128696142efcf88ce0f6846c25ec0
7
- data.tar.gz: a64139a2fa1aa9f2978371f281952ebf25dd384f639640159af0eca29fe7ec7292efb02273828b7334163970fcca4a9c9c8605bde7c518ba33ce9b70f94855c2
6
+ metadata.gz: bf4b39c80f04bbf15ffe45d0537c5115067678e96f2492e4f91bd2dd7d9dcef9b59b646e8fbb069971af5dffd7709ef29dd1c6501a0915d4b306b2d5532f1c8d
7
+ data.tar.gz: b0796ae5712a0531d009a8ac53159d0589adc18355812d7af8d6c282b2065e517a7106d7094f0e5855df2df488f9ccb78992a46a0d8f55fc7240ea2c1a01d5bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.0.2 (2015-05-26)
4
+ ### Fixed
5
+ - use commit hash to fetch revision for log
6
+
3
7
  ## 1.0.1 (2015-05-20)
4
8
  ### Fixed
5
9
  - fixed usage of frozen string as branch (e.g. if using ENV values)
@@ -46,7 +46,7 @@ namespace :git_copy do
46
46
  end
47
47
 
48
48
  desc 'Determine the revision that will be deployed'
49
- task :set_current_revision do
49
+ task set_current_revision: :'git_copy:update' do
50
50
  run_locally do
51
51
  within git_copy_utility.repo_path do
52
52
  set :current_revision, git_copy_utility.fetch_revision
@@ -73,7 +73,7 @@ module Capistrano
73
73
  #
74
74
  # @return void
75
75
  def fetch_revision
76
- capture(:git, 'rev-list', '--max-count=1', '--abbrev-commit', fetch(:branch)).strip
76
+ capture(:git, 'rev-list', '--max-count=1', '--abbrev-commit', commit_hash).strip
77
77
  end
78
78
 
79
79
  # Cleanup repo cache
@@ -133,8 +133,7 @@ module Capistrano
133
133
  end
134
134
 
135
135
  def git(*args)
136
- args.unshift(:git)
137
- execute(*args)
136
+ execute(:git, *args)
138
137
  end
139
138
 
140
139
  def git_archive_all_bin
@@ -3,6 +3,6 @@ module Capistrano
3
3
  # GitCopy
4
4
  module GitCopy
5
5
  # gem version
6
- VERSION = '1.0.1'
6
+ VERSION = '1.0.2'
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.1
4
+ version: 1.0.2
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-05-20 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano