From a53bcf25dace3b4d28cd1e3a674f83ac9c79b374 Mon Sep 17 00:00:00 2001 From: Mark Weiler Date: Wed, 13 Dec 2023 12:44:46 +0100 Subject: [PATCH] Fix git-scm.com links The anchors in [git-config](https://git-scm.com/docs/git-config) have changed. --- config/url_config.go | 2 +- docs/man/git-lfs-config.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/url_config.go b/config/url_config.go index 6d256bc7..cfceb021 100644 --- a/config/url_config.go +++ b/config/url_config.go @@ -22,7 +22,7 @@ func NewURLConfig(git Environment) *URLConfig { } // Get retrieves a `http.{url}.{key}` for the given key and urls, following the -// rules in https://git-scm.com/docs/git-config#git-config-httplturlgt. +// rules in https://git-scm.com/docs/git-config#Documentation/git-config.txt-httplturlgt. // The value for `http.{key}` is returned as a fallback if no config keys are // set for the given urls. func (c *URLConfig) Get(prefix, rawurl, key string) (string, bool) { diff --git a/docs/man/git-lfs-config.adoc b/docs/man/git-lfs-config.adoc index 45327efc..c96c5cae 100644 --- a/docs/man/git-lfs-config.adoc +++ b/docs/man/git-lfs-config.adoc @@ -315,7 +315,7 @@ hook. You should set this if you're not using File Locking, or your Git server verifies locked files on pushes automatically. + Supports URL config lookup as described in: -https://git-scm.com/docs/git-config#git-config-httplturlgt. To set this +https://git-scm.com/docs/git-config#Documentation/git-config.txt-httplturlgt. To set this value per-host: `git config --global lfs.https://github.com/.locksverify [true|false]`. * `lfs.sshtransfer` / `lfs..sshtransfer`