Solved Confused about using git for ports

I'm fundamentally confused about using git to maintain the ports tree: it's not updating
I just updated to 13.2 and performing a pull:

Code:
 ** root@olivia ** /usr/ports ** Fri Jul 07 09:48:19
# git pull
remote: Enumerating objects: 48764, done.
remote: Counting objects: 100% (12257/12257), done.
remote: Compressing objects: 100% (114/114), done.
remote: Total 48764 (delta 12190), reused 12143 (delta 12143), pack-reused 36507
Receiving objects: 100% (48764/48764), 23.64 MiB | 14.75 MiB/s, done.
Resolving deltas: 100% (26084/26084), completed with 8331 local objects.
From https://git.freebsd.org/ports
   41870dd5977c..22be32b3f873  2023Q2     -> origin/2023Q2
 * [new branch]                2023Q3     -> origin/2023Q3
   e2c49c845fae..630656a6e90e  main       -> origin/main
Already up to date.

By way of example, I've checked on a specific port: seafile-server. According to FreshPorts that was last updated on June 27 and yet the files in /usr/ports/net-mgmt/seafile-server are all still dated October 2022:

Code:
 /usr/ports/net-mgmt/seafile-server:
  total used in directory 56 available 4.6 GiB
  drwxr-xr-x    3 root  wheel     8 May 21 00:45 .
  drwxr-xr-x  420 root  wheel   421 Oct 18  2022 ..
  -rw-r--r--    1 root  wheel  3796 Oct 18  2022 Makefile
  -rw-r--r--    1 root  wheel   728 Oct 18  2022 Makefile.include
  -rw-r--r--    1 root  wheel   209 Oct 18  2022 distinfo
  drwxr-xr-x    2 root  wheel    15 Oct 18  2022 files
  -rw-r--r--    1 root  wheel   500 Oct 18  2022 pkg-descr
  -rw-r--r--    1 root  wheel  2119 Oct 18  2022 pkg-plist

Am I supposed to switch to a new branch?
I will happily RTFM, but the only document I can find is ShelLuser's post from 2 years ago?
 
Looks like it DOES update? Which branch do you have checked out? if it's the 2023Q2 branch, you probably just want to issue git checkout 2023Q3 after that to switch to the new quarterly branch.
 
I'm not overly facile with git; so I followed the instructions in ShlLuser's post and it just says:

So, to install a new (fresh) ports collection you'd use: # git clone https://git.freebsd.org/ports.git /usr/ports. Done!

So, if I'm using a branch, I have no idea which one?
Presumably I'm using "main?"
And what does "Already up to date." mean?

That being said: git checkout 2023Q3 appears to work.
 
So, if I'm using a branch, I have no idea which one?
Presumably I'm using "main?"
Look at the output from git status. That will tell you which branch you're on and if there's anything changed. If you just want to find out the branch; git branch will tell you.
 
Back
Top