diff options
author | Derrick Stolee <derrickstolee@github.com> | 2022-08-05 17:58:43 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-05 14:13:13 -0700 |
commit | 992f25d713d8fe02966491bbe6f45fd18e3b8d02 (patch) | |
tree | e49f4ed01b6810bae3037ee7d3a4580d091c5c34 /t/t4202-log.sh | |
parent | 863a8ae97b7b5b112b928f2fab8185bb7574e7b3 (diff) | |
download | git-992f25d713d8fe02966491bbe6f45fd18e3b8d02.tar.gz |
fetch: use ref_namespaces during prefetch
The "refs/prefetch/" namespace is used by 'git fetch --prefetch' as a
replacement of the destination of the refpsec for a remote. Git also
removes refspecs that include tags.
Instead of using string literals for the 'refs/tags/ and
'refs/prefetch/' namespaces, use the entries in the ref_namespaces
array.
This kind of change could be done in many places around the codebase,
but we are isolating only to this change because of the way the
refs/prefetch/ namespace somewhat motivated the creation of the
ref_namespaces array.
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4202-log.sh')
0 files changed, 0 insertions, 0 deletions