作者whhsu (ck49th318)
看板pighead
標題Re: 還是要說
時間Wed Jun 3 15:15:58 2026
※ 引述《pig (歡迎加入豬頭黨)》之銘言:
: https://cgit.freebsd.org/ports/commit/?id=3f345476
: freebsd 的 ports 裡面的 rsync 更新到 3.4.2 然後 --fileflags
: 就沒得開了(schg 同步會用到)
: 試了幾天想了幾個替代方案都太麻煩了點,結果看到有人在 rsync 的源頭
: 開了加 fileflags 的 pull request
: … 那先全部降回 3.4.1 等這個上線再說了 :p
因為有幾台機器空間有限然後 src 又吃一堆空間,所以就想說只抓新一點的 commit 就好
不過 got 似乎沒辦法直接弄,所以就要用 git 去長,時間點以 2020-01-01 為例
# git clone --bare --shallow-since=2020-01-01 \
ssh://
[email protected]/src.git /var/repos/src.git
接下來 got 正常 fetch update 到 /usr/src 就好,已經有 /usr/src 的話
還是可以下這個指令重做,要注意的是分支要在時間後發生的才可以,
不然就會出現 not found 之類的訊息
其實 ports.git 更適合可以一陣子就來清一下,反正留太舊的也沒啥意義
然後 git gc 可能也會出現狀況,只要有 tag 的時間在 2020-01-01
之前的話就會炸,把 tag 清清掉就可以了
git tag -d $(git tag -l)
不過下次 got fetch 的時候又會通通跑出來就是 :p
--
Say you need M$ with you here, beside you...
anywhere you go, let M$ go too -
, that's all I ask of you...
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 218.161.120.232 (臺灣)
※ 文章網址: https://webptt.com/m.aspx?n=bbs/pighead/M.1780470961.A.1AE.html