git 5.0.3 → 5.0.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: 6dcf907e2c0ccb6d916a9aa1d43f6c768e49555465a484e0231d919cb889b889
4
- data.tar.gz: 5cce608675a41031f79318065e8c11125f9f23a154ab2ae6f578192010b04367
3
+ metadata.gz: 04104dc235012494d8e6b9718421d02f040a6216aec0991bce962b17b1e61c43
4
+ data.tar.gz: bbfe9f44799e29f24e5baa4095d42159af56b9a8c568a51b9358d8ba3758e90f
5
5
  SHA512:
6
- metadata.gz: 42dbbce6613ecd406e64771bb03d85416a4eae0fe12183fee03640292f5f18700175788c35c55836ad2d572bde6857421ed6cae8f9d7520dcd8bd12b498ae809
7
- data.tar.gz: d55dd4bd23e700aacd23d8b850adada2e0e3a8f90176515e5de3b5213e43282ac5e8e105d500243bc54a0655472368e00becf4b6c01e59e4baf842223f8f89a7
6
+ metadata.gz: 0cc7b0792f17d8972999f33f7412477996a6d865bcce5fb24bf27bb9add5dc0ee83f8623e1940bf88a9deebcba1b409a2f3910ee99dbf1d6d33b2eb5dc5afa86
7
+ data.tar.gz: 64d890f4273c6a56389bfa5ae42bce90a4aa5d8e63a1536361662bab9cc0ba88e7e317f47bc9b1dbaa0e454b8a5bb7b065bd87aec8a33e1f4367c68feb89092f
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "5.0.3"
2
+ ".": "5.0.4"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@
5
5
 
6
6
  # Change Log
7
7
 
8
+ ## [5.0.4](https://github.com/ruby-git/ruby-git/compare/v5.0.3...v5.0.4) (2026-08-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Return the full ref path in the ls_remote :ref value ([34b0b06](https://github.com/ruby-git/ruby-git/commit/34b0b0678c6ab47f77afaf7331fb6b41160def1a)), closes [#1416](https://github.com/ruby-git/ruby-git/issues/1416)
14
+
15
+
16
+ ### Other Changes
17
+
18
+ * Pin the locale for the CommandLine::Capturing integration spec ([6040867](https://github.com/ruby-git/ruby-git/commit/6040867ecfb44434a26006f9b79bebfb590d1ca8))
19
+
8
20
  ## [5.0.3](https://github.com/ruby-git/ruby-git/compare/v5.0.2...v5.0.3) (2026-08-07)
9
21
 
10
22
 
@@ -47,12 +47,12 @@ module Git
47
47
  end
48
48
 
49
49
  sha, info = line.split("\t", 2)
50
- ref, type, name = info.split('/', 3)
50
+ _, type, name = info.split('/', 3)
51
51
 
52
52
  type ||= 'head'
53
53
  type = 'branches' if type == 'heads'
54
54
 
55
- value = { ref: ref, sha: sha }
55
+ value = { ref: info, sha: sha }
56
56
 
57
57
  [type, name, value]
58
58
  end
@@ -639,7 +639,7 @@ module Git
639
639
  # @example List all refs from the local repository
640
640
  # repo.ls_remote
641
641
  # # => {"head"=>{ref: "HEAD", sha: "abc123"},
642
- # # "branches"=>{"main"=>{ref: "refs", sha: "abc123"}}}
642
+ # # "branches"=>{"main"=>{ref: "refs/heads/main", sha: "abc123"}}}
643
643
  #
644
644
  # @example List all refs from a named remote
645
645
  # repo.ls_remote('origin')
@@ -647,7 +647,7 @@ module Git
647
647
  #
648
648
  # @example List only tags from a named remote
649
649
  # repo.ls_remote('origin', tags: true)
650
- # # => {"tags"=>{"v1.0"=>{ref: "refs", sha: "def456"}}}
650
+ # # => {"tags"=>{"v1.0"=>{ref: "refs/tags/v1.0", sha: "def456"}}}
651
651
  #
652
652
  # @param location [String, nil] the remote name or URL to query; defaults to
653
653
  # `'.'` (the local repository) when nil
@@ -678,12 +678,6 @@ module Git
678
678
  #
679
679
  # @raise [Git::FailedError] if git exits outside the allowed range (exit code > 2)
680
680
  #
681
- # @note The `:ref` value in each pair is only the **first path segment** of the
682
- # full git ref (e.g. `"refs"` for `refs/heads/main`), not the complete ref
683
- # path. This matches the behavior of 4.x. See
684
- # [issue 1416](https://github.com/ruby-git/ruby-git/issues/1416) for the
685
- # planned fix.
686
- #
687
681
  def ls_remote(location = nil, opts = {})
688
682
  SharedPrivate.assert_valid_opts!(LS_REMOTE_ALLOWED_OPTS, **opts)
689
683
  repository = location || '.'
data/lib/git/version.rb CHANGED
@@ -4,7 +4,7 @@ module Git
4
4
  # The current gem version
5
5
  #
6
6
  # @return [String] the current gem version
7
- VERSION = '5.0.3'
7
+ VERSION = '5.0.4'
8
8
 
9
9
  # Represents a git version with major, minor, and patch components
10
10
  #
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: 5.0.3
4
+ version: 5.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon and others
@@ -630,8 +630,8 @@ licenses:
630
630
  metadata:
631
631
  homepage_uri: http://github.com/ruby-git/ruby-git
632
632
  source_code_uri: http://github.com/ruby-git/ruby-git
633
- changelog_uri: https://rubydoc.info/gems/git/5.0.3/file/CHANGELOG.md
634
- documentation_uri: https://rubydoc.info/gems/git/5.0.3
633
+ changelog_uri: https://rubydoc.info/gems/git/5.0.4/file/CHANGELOG.md
634
+ documentation_uri: https://rubydoc.info/gems/git/5.0.4
635
635
  rubygems_mfa_required: 'true'
636
636
  rdoc_options: []
637
637
  require_paths: