Bug 255603 - [PATCH] Handbook Chapter 24.5.3: change change wrong branch name main/->main
Summary: [PATCH] Handbook Chapter 24.5.3: change change wrong branch name main/->main
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Documentation (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-doc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-05 01:53 UTC by Minsoo Choo
Modified: 2021-05-05 07:21 UTC (History)
1 user (show)

See Also:


Attachments
git diff file (760 bytes, patch)
2021-05-05 01:53 UTC, Minsoo Choo
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Minsoo Choo 2021-05-05 01:53:49 UTC
Created attachment 224673 [details]
git diff file

git clone --branch main https://git.FreeBSD.org/src.git is correct
However, when a person who does not know git well can type git clone --branch main/ https://git.FreeBSD.org/src.git when they read the handbook.

I got this report from freebsd-questions mailing list, and I attach a git diff file.

I don't have a permission to commit, so how can I get access to doc.git?
Comment 1 commit-hook freebsd_committer 2021-05-05 07:19:56 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/doc/commit/?id=23b3362cfb3ce5c5cbf6fae8c41db9bc983940d4

commit 23b3362cfb3ce5c5cbf6fae8c41db9bc983940d4
Author:     Minsoo Choo <fel1x.mintchoco.development@gmail.com>
AuthorDate: 2021-05-05 07:16:41 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2021-05-05 07:18:03 +0000

    Correct the branch name from 'main/' to 'main'

    PR:             255603
    Approved by:    carlavilla (implicitly)

 documentation/content/en/books/handbook/cutting-edge/_index.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Li-Wen Hsu freebsd_committer 2021-05-05 07:21:30 UTC
Fixed, thanks for the patch!

The best way to access the repository without permission is submitting the patch using `git format-patch`, to keep the original author information.