Skip to content
Clone

refactor(config): add max_lfs_object_size to git config and refresh git config defaults

zhenyi committed
parent 99a459a commit a2c59a3 Browse files

1 file changed

+3 −1

Modified lib/config/src/git.rs View lib/config/src/git.rs
@@ -13,6 +13,7 @@
1313 pub lfs_storage_root: String,
1414 pub object_cache_prefix: String,
1515 pub object_cache_ttl: u64,
16 pub max_lfs_object_size: u64,
1617}
1718
1819impl Default for SmartConfig {
@@ -24,6 +25,7 @@
2425 lfs_storage_root: "/var/lib/repo/lfs".to_string(),
2526 object_cache_prefix: "gitsmart".to_string(),
2627 object_cache_ttl: 300,
28 max_lfs_object_size: 1 << 30,
2729 }
2830 }
2931}
@@ -72,7 +74,7 @@
7274impl Default for GitAuthConfig {
7375 fn default() -> Self {
7476 Self {
75 allow_anonymous_read: true,
77 allow_anonymous_read: false,
7678 }
7779 }
7880}