Deleted the content of /usr/ports/ (distfiles remained) as well as the directory /var/db/gitup/, then executed– how, exactly?
gitup ports
again - worked.Deleted the content of /usr/ports/ (distfiles remained) as well as the directory /var/db/gitup/, then executed– how, exactly?
gitup ports
again - worked.… gitup is dumping core …
{
"defaults" : {
"proxy_host" : "proxy",
"proxy_port" : "3128",
"port" : 443,
"host" : "git.freebsd.org",
"low_memory" : false,
"display_depth" : 0,
"verbosity" : 1,
"work_directory" : "/tmp/gu",
},
"ports" : {
"repository_path" : "/ports.git",
"branch" : "main",
"target_directory" : "/tmp/g",
"ignores" : [ "INDEX-11", "INDEX-12", "INDEX-13", "INDEX-14" ],
}
}
Use devel/git in that case.Now, what I'd like to have is an update mode where gitup leaves unknown files alone.
That's exactly what I don't wantUse devel/git in that case.
So why not script the chores you want done to the effect that you want?That's exactly what I don't want
Please see https://forums.freebsd.org/threads/gitup.77863/post-542396
Have you tried a shallow clone?However, this gives you a bloated ports directory. Mine is 2,2GB with 50% sitting in .git.
As the ignore list doesn't honour wildcards (or even regexes) this would be quite aadd your file(s) to ignore list
Yep. Bloat was about 25% smaller but growing. I am happy now with the modified gitup ;-).Have you tried a shallow clone?
How to Use Git Shallow Clone to Improve Performance | Perforce Software
Using git shallow clone can help you clone repos faster. Learn how to execute git shallow clone and prune your repos to accelerate CI pipelines.www.perforce.com
Not sure what you're talking about.Yep. Bloat was about 25% smaller but growing. I am happy now with the modified gitup ;-).
$ git clone --depth 1 -b 2021Q4 https://git.FreeBSD.org/ports.git
Cloning into 'ports'...
remote: Enumerating objects: 178456, done.
remote: Counting objects: 100% (178456/178456), done.
remote: Compressing objects: 100% (167126/167126), done.
remote: Total 178456 (delta 9323), reused 118397 (delta 6961), pack-reused 0
Receiving objects: 100% (178456/178456), 73.81 MiB | 9.18 MiB/s, done.
Resolving deltas: 100% (9323/9323), done.
Updating files: 100% (142020/142020), done.
$ du -sh ports
1.0G ports
$ cd ports
$ du -sh .git
94M .git
I didn't use -b and tried it once a day for 20 days...Not sure what you're talking about.
Gitup gives you one branch at a time. Let's compare apples to apples. Not sure what doing it for 20 days would prove.I didn't use -b and tried it once a day for 20 days...
Yep, you suggested git shallow clones and I commented on it. To clarify:Gitup gives you one branch at a time. Let's compare apples to apples. Not sure what doing it for 20 days would prove.
Yep, my WRKDIR is on /tmpMake sure your /usr/ports isn't filling up with all the work/ directories.