From c72997f2980e0b519bdb31e6b7760dc36009200f Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 5 Apr 2023 22:24:20 -0400 Subject: [PATCH] Make srcmounts readonly All tools only read from srcmounts and the current setup had a bug which caused branch mode and minfreespace to be stripped when using config file. --- src/branches.cpp | 3 ++- src/config.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/branches.cpp b/src/branches.cpp index a69f5327..d5eff6c2 100644 --- a/src/branches.cpp +++ b/src/branches.cpp @@ -424,7 +424,8 @@ SrcMounts::SrcMounts(Branches &b_) int SrcMounts::from_string(const std::string &s_) { - return _branches.from_string(s_); + // return _branches.from_string(s_); + return 0; } std::string diff --git a/src/config.cpp b/src/config.cpp index 17234339..b58e7753 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -68,6 +68,7 @@ namespace l IFERT("read-thread-count"); IFERT("readdirplus"); IFERT("scheduling-priority"); + IFERT("srcmounts"); IFERT("threads"); IFERT("version");