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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7330529bf940f74fcdf782fa298d7de00d0f75b5ccbd303bb6a99d57668b6a0
4
- data.tar.gz: 4dc5b12076314094bf03638433dcbc6df5f486b6b2b5da6ff2350c77942b23ca
3
+ metadata.gz: f23af05975dc472665784e91a3e69112694837cbd2a873076a7fb3197828970f
4
+ data.tar.gz: b3e2a26cbf1aff738c647eb37aa6b661975a396b680352288f68c0ba20da429d
5
5
  SHA512:
6
- metadata.gz: c3ce186a25e7acbc07735118a7a9d55bbca2deee8ff7ba79ea8eebdb1dd8ecff2a01beb640528af0ed8d35a9a62bf03161b8afa545ca6ceb5b7b3ea62ce510ba
7
- data.tar.gz: f6d0ec9167c8dc69ebdd7caad9c24d595bfd83c3400618d8eefaeb1e0ace4f6dc7a1eb4a752bb499f3c2dc16edf522096e4680dd69f414dcbef6dd9bc9addcd3
6
+ metadata.gz: b9f239ae1a6cdf02d8aef5944f4d704bffaeb0d410191d7f5b7c759ba1d525dca27dd8efcec2e19ac4ffee9787ff3706b16860d0e16ff493136bcb2378b70a7c
7
+ data.tar.gz: fb954090b896bf41a396c956847133fc7d367fc564fbc8e3973ed61f2738b16f3926397b4526994d6c6d1781439970055f67e5c7d8137a0174a4f614b69f7a60
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Version string for git-fastclone
4
4
  module GitFastCloneVersion
5
- VERSION = '1.4.4'
5
+ VERSION = '1.4.5'
6
6
  end
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)}:submodules.txt"
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)}:lock"
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
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-11-15 00:00:00.000000000 Z
12
+ date: 2023-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize