fetch: remove .keep files
The .keep files for packs were never being removed, resulting in all pack
files never being cleaned up by git gc.
Referring to Gitoxide[0][1], the same idea for removing the .keep file is
applied when performing write_pack.
Signed-off-by: Fintan Halpenny fintan.halpenny@gmail.com X-Clacks-Overhead: GNU Terry Pratchett
6 files changed
+66
-5
ca7db162
→
d56d619f
modified radicle-fetch/src/git.rs
@@ -1,5 +1,6 @@
|
|
|
|
| + | |
|
|
|
|
|
added radicle-fetch/src/git/packfile.rs
@@ -0,0 +1,32 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified radicle-fetch/src/state.rs
@@ -14,6 +14,7 @@ use radicle::storage::{
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -160,6 +161,10 @@ pub struct FetchState {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -233,9 +238,11 @@ impl FetchState {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-fetch/src/transport.rs
@@ -21,6 +21,7 @@ use radicle::storage::git::Repository;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -120,7 +121,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -170,7 +171,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-fetch/src/transport/fetch.rs
@@ -17,6 +17,8 @@ use gix_transport::client;
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -102,6 +104,7 @@ pub struct Fetch {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -127,6 +130,7 @@ impl<'a> Delegate for &'a mut Fetch {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -204,6 +208,7 @@ where
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-node/src/tests/e2e.rs
@@ -216,6 +216,21 @@ fn test_replication() {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|