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 +4 -4
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +12 -0
- data/lib/git/parsers/ls_remote.rb +2 -2
- data/lib/git/repository/remote_operations.rb +2 -8
- data/lib/git/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04104dc235012494d8e6b9718421d02f040a6216aec0991bce962b17b1e61c43
|
|
4
|
+
data.tar.gz: bbfe9f44799e29f24e5baa4095d42159af56b9a8c568a51b9358d8ba3758e90f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0cc7b0792f17d8972999f33f7412477996a6d865bcce5fb24bf27bb9add5dc0ee83f8623e1940bf88a9deebcba1b409a2f3910ee99dbf1d6d33b2eb5dc5afa86
|
|
7
|
+
data.tar.gz: 64d890f4273c6a56389bfa5ae42bce90a4aa5d8e63a1536361662bab9cc0ba88e7e317f47bc9b1dbaa0e454b8a5bb7b065bd87aec8a33e1f4367c68feb89092f
|
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
|
-
|
|
50
|
+
_, type, name = info.split('/', 3)
|
|
51
51
|
|
|
52
52
|
type ||= 'head'
|
|
53
53
|
type = 'branches' if type == 'heads'
|
|
54
54
|
|
|
55
|
-
value = { ref:
|
|
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
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.
|
|
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.
|
|
634
|
-
documentation_uri: https://rubydoc.info/gems/git/5.0.
|
|
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:
|