git-fastclone 1.4.4 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git-fastclone/version.rb +1 -1
- data/lib/git-fastclone.rb +12 -2
- 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: f23af05975dc472665784e91a3e69112694837cbd2a873076a7fb3197828970f
|
4
|
+
data.tar.gz: b3e2a26cbf1aff738c647eb37aa6b661975a396b680352288f68c0ba20da429d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9f239ae1a6cdf02d8aef5944f4d704bffaeb0d410191d7f5b7c759ba1d525dca27dd8efcec2e19ac4ffee9787ff3706b16860d0e16ff493136bcb2378b70a7c
|
7
|
+
data.tar.gz: fb954090b896bf41a396c956847133fc7d367fc564fbc8e3973ed61f2738b16f3926397b4526994d6c6d1781439970055f67e5c7d8137a0174a4f614b69f7a60
|
data/lib/git-fastclone.rb
CHANGED
@@ -47,13 +47,23 @@ module GitFastClone
|
|
47
47
|
end
|
48
48
|
module_function :reference_repo_dir
|
49
49
|
|
50
|
+
def reference_filename(filename)
|
51
|
+
separator = if RbConfig::CONFIG['host_os'] =~ /mswin|msys|mingw|cygwin|bccwin|wince|emc/
|
52
|
+
'__'
|
53
|
+
else
|
54
|
+
':'
|
55
|
+
end
|
56
|
+
"#{separator}#{filename}"
|
57
|
+
end
|
58
|
+
module_function :reference_filename
|
59
|
+
|
50
60
|
def reference_repo_submodule_file(url, reference_dir, using_local_repo)
|
51
|
-
"#{reference_repo_dir(url, reference_dir, using_local_repo)}
|
61
|
+
"#{reference_repo_dir(url, reference_dir, using_local_repo)}#{reference_filename('submodules.txt')}"
|
52
62
|
end
|
53
63
|
module_function :reference_repo_submodule_file
|
54
64
|
|
55
65
|
def reference_repo_lock_file(url, reference_dir, using_local_repo)
|
56
|
-
lock_file_name = "#{reference_repo_dir(url, reference_dir, using_local_repo)}
|
66
|
+
lock_file_name = "#{reference_repo_dir(url, reference_dir, using_local_repo)}#{reference_filename('lock')}"
|
57
67
|
File.open(lock_file_name, File::RDWR | File::CREAT, 0o644)
|
58
68
|
end
|
59
69
|
module_function :reference_repo_lock_file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-fastclone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Tauraso
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|