Solved Portsnap alternative

After reading that portsnap is depreciated, I would like to use net/svnup for ease of use.

For the last 3 days, portsnap fetch update always returns "Ports tree is already up to date". So I'm assuming it no longer can be used?

My questions are :

Do I need to rm -rf /usr/ports before using svnup?

Is there going to be similar tool for git for those of us who do not use Poudriere? (I use synth)
 
According to the manpage (yes, it's not on man.freebsd.org yet), -v 1 should do exactly that:
Code:
.It Fl v
How verbose the output should be (0 = no output, 1 = show only names of the
updated files, 2 = also show commands sent to the server and additional
debugging information).
 
Code:
gitup [-v0 | -v1 | -v2] ports
results in:

gitup: get_commit_details: refs/heads/master doesn't exist in /freebsd/freebsd-ports.git: Invalid argument
 
Because it is a mirror. No, it's not the official repo. It's clearly stated there:
FreeBSD ports tree (read-only mirror)

The official repos are those on git.freebsd.org. Btw, ports.git now appeared there, but it seems it's not ready for commits yet.
 
gitup -v ports does not provide a list of the new/changed files. As svn did. Anyway to get that?

Unfortunately, I don't think this is currently possible. When requesting a pull from a Git server, you tell it what commit you have and what commit you want and it sends down everything that's needed (commits, trees, blobs, tags and deltas) to update your local repository. Recent versions of the git server allow you to filter out some of the object types in your request (for example, you can now request a pack file that only contains commit objects) but it doesn't look like they've implemented a way to request only tree objects.

If/when that feature is implemented, I'll definitely add it as an option to net/gitup.
 
I prefer using the official repository directly. A mirror could lag behind if something fails.
They indeed lag behind. I couldn't get FreeBSD 13RC5 on most mirrors (Australia, S. Africa, Singapore, most of Europe) but from the official cgit.freebsd.org and the repo in Taiwan.
 
Back
Top