capistrano-git-copy 1.5.3 → 1.5.4

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
  SHA256:
3
- metadata.gz: 100d26afc3422d8280d7ec211f0af3c9f2b2802c66aa5ffcdaa17d919de52292
4
- data.tar.gz: 1d44966f13986f6ebd4f5c4d37a00b9fddb452ce0b82da0f8a863894bc320b40
3
+ metadata.gz: 643a1d09f446a1a37d47896f9868feeaa4030b2a0306ebab77ac24dd8bb6728d
4
+ data.tar.gz: fa2212878ae3a8435e52d77a369f7b21e43444ce31d120af21037b3be0477c4e
5
5
  SHA512:
6
- metadata.gz: 3b38135587cf0d941be9664bbe3573544180398fcc13e9f466815ae47b4a1adcad2317fcd8ae4376a25f1e6d9413f264804045f8f5b4a805bea53fc798b015eb
7
- data.tar.gz: a59f7e452bc4f0a54f8262c4b08576a3337c03c797b1531e3f36ed8dac88c86f972228580a14bf7b4da656fcfb3ed5eff2fb3c93e0febb45766de7da72a044a8
6
+ metadata.gz: 3ac87e1fc29d7adaaedf48d9bbd92d635e0b9bd1e8a3a025c759910695bccb10605d30455d6506be030d3546fbc04bf666dcd73298ebbd78dc81ca2b949a62ee
7
+ data.tar.gz: 323bd1c4beae97837dbb5a6db3d5e9afcfab223c91fe3fe538dc8fefb7a19abb2ff56d49209f82b074e044cc741dea2e352df74b81116424abca6e5dcda50b5a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.5.4 (2018-11-14)
4
+ ### Changes
5
+ - updated _git-archive-all_ to 1.19.2
6
+
3
7
  ## 1.5.3 (2018-11-02)
4
8
  ### Changes
5
9
  - updated _git-archive-all_ to 1.19.1
@@ -5,6 +5,6 @@ module Capistrano
5
5
  # GitCopy
6
6
  module GitCopy
7
7
  # gem version
8
- VERSION = '1.5.3'
8
+ VERSION = '1.5.4'
9
9
  end
10
10
  end
@@ -27,12 +27,12 @@ from __future__ import print_function
27
27
  from __future__ import unicode_literals
28
28
 
29
29
  import logging
30
- from os import extsep, path, readlink
30
+ from os import environ, extsep, path, readlink
31
31
  from subprocess import CalledProcessError, Popen, PIPE
32
32
  import sys
33
33
  import re
34
34
 
35
- __version__ = "1.19.1"
35
+ __version__ = "1.19.2"
36
36
 
37
37
 
38
38
  try:
@@ -287,7 +287,7 @@ class GitArchiver(object):
287
287
  continue
288
288
 
289
289
  for main_repo_submodule_file_path in self.walk_git_files(main_repo_submodule_path):
290
- repo_submodule_file_path = main_repo_submodule_file_path.replace(repo_path, "", 1).strip("/") # relative to repo_path
290
+ repo_submodule_file_path = path.relpath(main_repo_submodule_file_path, repo_path) # relative to repo_path
291
291
  if self.is_file_excluded(repo_abspath, repo_submodule_file_path):
292
292
  continue
293
293
 
@@ -356,8 +356,9 @@ class GitArchiver(object):
356
356
  @rtype: generator
357
357
  """
358
358
  def make_process():
359
- cmd = 'GIT_FLUSH=1 git check-attr --stdin -z {0}'.format(' '.join(attrs))
360
- return Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, cwd=repo_abspath)
359
+ env = dict(environ, GIT_FLUSH='1')
360
+ cmd = 'git check-attr --stdin -z {0}'.format(' '.join(attrs))
361
+ return Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, cwd=repo_abspath, env=env)
361
362
 
362
363
  def read_attrs(process, repo_file_path):
363
364
  process.stdin.write(repo_file_path.encode('utf-8') + b'\0')
@@ -397,8 +398,6 @@ class GitArchiver(object):
397
398
  repo_file_attrs = {}
398
399
 
399
400
  for path, attr, value in read_attrs(process, repo_file_path):
400
- assert path == repo_file_path
401
- assert attr in attrs
402
401
  repo_file_attrs[attr] = value
403
402
 
404
403
  yield repo_file_attrs
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.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Schwab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-02 00:00:00.000000000 Z
11
+ date: 2018-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano