git 4.4.3 → 4.4.5

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: 5edd3d97d763864b53bf259e67da06224fe1af8700e6229402af735395c48694
4
- data.tar.gz: 0be5c354b15762008e8b83208aaa900d8bdadc4bf2e9b953526a112caad9b1c7
3
+ metadata.gz: 01ae4a6ba318c6ceb9d57b9983b80cd5c29eff80cdf0e4d78f488708ca0edda6
4
+ data.tar.gz: 1b83fd22774a10710da2a49251456c072a9373e9132ed31386c11563da83b8c9
5
5
  SHA512:
6
- metadata.gz: ba7c8e11c635383c3b502eeebe74f6bd8a38baf84c55375c623f24b90376c7a7012119770dfc32e87427970e9d613f25cb80ddeda4d315dd5058b64e37b284c4
7
- data.tar.gz: 9fed231ffd42c844f736e19c286a968005050cbf84f2c64a2d3d68fa75982728534590c0ae482d9044b814ed9a631d95f458d82a65edc37ab2f36c2ba9532399
6
+ metadata.gz: ab9bbd4f588bd753df94ecd7020f66d1ebb4f051c534aaa4aefc0fcf04b0f7842e5dcf6175dc4fa28485f8d9023643470e7b0a8bdd52e4ccca5a296a25550228
7
+ data.tar.gz: '0328e67227ad50a6f7fdeabcd6c3e36f5adf2d7a5946d52948218385cc19f4131cdcdd873748b6edc69b2929df11b63a6a0c177922efc51b8edd2a6c4ec97788'
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "4.4.3"
2
+ ".": "4.4.5"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@
5
5
 
6
6
  # Change Log
7
7
 
8
+ ## [4.4.5](https://github.com/ruby-git/ruby-git/compare/v4.4.4...v4.4.5) (2026-09-10)
9
+
10
+
11
+ ### Other Changes
12
+
13
+ * **export:** Describe what a failed .git removal leaves behind ([8a596f0](https://github.com/ruby-git/ruby-git/commit/8a596f00e032170ad6a48af2337dad71b7418069)), closes [#1823](https://github.com/ruby-git/ruby-git/issues/1823)
14
+
15
+ ## [4.4.4](https://github.com/ruby-git/ruby-git/compare/v4.4.3...v4.4.4) (2026-09-10)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **export:** Drop the redundant checkout that broke Git.export for tags ([59bfe62](https://github.com/ruby-git/ruby-git/commit/59bfe62ac739030319cdfb83d601dd77e958205b)), closes [#1815](https://github.com/ruby-git/ruby-git/issues/1815)
21
+
8
22
  ## [4.4.3](https://github.com/ruby-git/ruby-git/compare/v4.4.2...v4.4.3) (2026-08-30)
9
23
 
10
24
 
data/lib/git/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  module Git
4
4
  # The current gem version
5
5
  # @return [String] the current gem version.
6
- VERSION = '4.4.3'
6
+ VERSION = '4.4.5'
7
7
  end
data/lib/git.rb CHANGED
@@ -308,10 +308,22 @@ module Git # rubocop:disable Style/OneClassPerFile
308
308
  # See +clone+ for options. Does not obey the <tt>:remote</tt> option,
309
309
  # since the .git info will be deleted anyway; always uses the default
310
310
  # remote, 'origin.'
311
+ #
312
+ # <tt>options[:branch]</tt> is the short name of the ref: a branch name such as
313
+ # 'main' or a tag name such as 'v1.0.0'. A full ref path such as
314
+ # 'refs/tags/v1.0.0' or a commit SHA is not accepted.
315
+ #
316
+ # Removing +.git+ is not atomic. If it fails, the exported files are complete and
317
+ # usable, but the directory keeps whatever part of +.git+ could not be deleted.
318
+ # Nothing is cleaned up, because the exported files are the deliverable and the
319
+ # leftover has to be removed by hand once the cause of the failure is fixed.
320
+ #
321
+ # @raise [SystemCallError] if the +.git+ directory cannot be removed. The exported
322
+ # files are left in place, and the directory keeps whatever part of +.git+ could
323
+ # not be deleted.
311
324
  def self.export(repository, name, options = {})
312
325
  options.delete(:remote)
313
326
  repo = clone(repository, name, { depth: 1 }.merge(options))
314
- repo.checkout("origin/#{options[:branch]}") if options[:branch]
315
327
  FileUtils.rm_r File.join(repo.dir.to_s, '.git')
316
328
  end
317
329
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.3
4
+ version: 4.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon and others
@@ -310,8 +310,8 @@ licenses:
310
310
  metadata:
311
311
  homepage_uri: http://github.com/ruby-git/ruby-git
312
312
  source_code_uri: http://github.com/ruby-git/ruby-git
313
- changelog_uri: https://rubydoc.info/gems/git/4.4.3/file/CHANGELOG.md
314
- documentation_uri: https://rubydoc.info/gems/git/4.4.3
313
+ changelog_uri: https://rubydoc.info/gems/git/4.4.5/file/CHANGELOG.md
314
+ documentation_uri: https://rubydoc.info/gems/git/4.4.5
315
315
  rubygems_mfa_required: 'true'
316
316
  rdoc_options: []
317
317
  require_paths: