Skip to content

Conversation

@dscho
Copy link
Member

@dscho dscho commented Dec 18, 2025

cc: Patrick Steinhardt [email protected]

When 58aaf59 (t: introduce GIT_TEST_DEFAULT_REF_FORMAT envvar,
2023-12-29) copy-edited the `test_detect_hash` function, the code
comment was accidentally left unchanged. Let's adjust it.

Noticed-by: Matthew John Cheetham <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
@dscho
Copy link
Member Author

dscho commented Dec 18, 2025

/submit

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 18, 2025

Submitted as [email protected]

To fetch this version into FETCH_HEAD:

git fetch https://github.com/gitgitgadget/git/ pr-2019/dscho/fix-detect-ref-format-comment-v1

To fetch this version to local tag pr-2019/dscho/fix-detect-ref-format-comment-v1:

git fetch --no-tags https://github.com/gitgitgadget/git/ tag pr-2019/dscho/fix-detect-ref-format-comment-v1

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 19, 2025

On the Git mailing list, Patrick Steinhardt wrote (reply to this):

On Thu, Dec 18, 2025 at 03:20:59PM +0000, Johannes Schindelin via GitGitGadget wrote:
> diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
> index 52d7759bf5..14e238d24d 100644
> --- a/t/test-lib-functions.sh
> +++ b/t/test-lib-functions.sh
> @@ -1724,7 +1724,7 @@ test_detect_hash () {
>  	esac
>  }
>  
> -# Detect the hash algorithm in use.
> +# Detect the ref format in use.
>  test_detect_ref_format () {
>  	echo "${GIT_TEST_DEFAULT_REF_FORMAT:-files}"
>  }

An obvious copy-paste error indeed. Thanks for fixing, this looks good
to me!

Patrick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant