Browse Source

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.
pull/1171/head
Antonio SJ Musumeci 2 years ago
parent
commit
c72997f298
  1. 3
      src/branches.cpp
  2. 1
      src/config.cpp

3
src/branches.cpp

@ -424,7 +424,8 @@ SrcMounts::SrcMounts(Branches &b_)
int int
SrcMounts::from_string(const std::string &s_) SrcMounts::from_string(const std::string &s_)
{ {
return _branches.from_string(s_);
// return _branches.from_string(s_);
return 0;
} }
std::string std::string

1
src/config.cpp

@ -68,6 +68,7 @@ namespace l
IFERT("read-thread-count"); IFERT("read-thread-count");
IFERT("readdirplus"); IFERT("readdirplus");
IFERT("scheduling-priority"); IFERT("scheduling-priority");
IFERT("srcmounts");
IFERT("threads"); IFERT("threads");
IFERT("version"); IFERT("version");

Loading…
Cancel
Save