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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/capistrano/git_copy/version.rb +1 -1
- data/vendor/git-archive-all/git_archive_all.py +6 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 643a1d09f446a1a37d47896f9868feeaa4030b2a0306ebab77ac24dd8bb6728d
|
4
|
+
data.tar.gz: fa2212878ae3a8435e52d77a369f7b21e43444ce31d120af21037b3be0477c4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ac87e1fc29d7adaaedf48d9bbd92d635e0b9bd1e8a3a025c759910695bccb10605d30455d6506be030d3546fbc04bf666dcd73298ebbd78dc81ca2b949a62ee
|
7
|
+
data.tar.gz: 323bd1c4beae97837dbb5a6db3d5e9afcfab223c91fe3fe538dc8fefb7a19abb2ff56d49209f82b074e044cc741dea2e352df74b81116424abca6e5dcda50b5a
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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 =
|
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
|
-
|
360
|
-
|
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.
|
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-
|
11
|
+
date: 2018-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|