[Bug 284340] Handbook 26.6.1 1) should be git -C /usr/src pull not git pull -C /usr/src

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 25 Jan 2025 15:09:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284340

            Bug ID: 284340
           Summary: Handbook 26.6.1 1) should be git -C /usr/src pull not
                    git pull -C /usr/src
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Books & Articles
          Assignee: doc@FreeBSD.org
          Reporter: dufresnep@zoho.com

Instructions have update & build:
# git pull -C /usr/src  (1)
check /usr/src/UPDATING  (2)
# cd /usr/src          (3)
# make -j4 buildworld  (4)
# make -j4 kernel      (5)
# shutdown -r now      (6)
# etcupdate -p         (7)
# cd /usr/src          (8)
# make installworld    (9)
# etcupdate -B         (10)
# shutdown -r now      (11)

but (1) don't work as it is:

# pwd
/usr/home/paul
# 

# git pull -C /usr/src
fatal: not a git repository (or any parent up to mount point /usr)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
# [should be:]
# git -C /usr/src pull
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (5/5), done.
remote: Total 19 (delta 4), reused 4 (delta 4), pack-reused 14 (from 1)
Unpacking objects: 100% (19/19), 27.49 KiB | 563.00 KiB/s, done.
From https://git.FreeBSD.org/src
   46a9fb7287f4..f934e629dc22  main       -> origin/main
   98983f3c9dec..47560d54be59  stable/13  -> origin/stable/13
Updating 46a9fb7287f4..f934e629dc22

-- 
You are receiving this mail because:
You are the assignee for the bug.