Compare commits

...
2 Commits
Author SHA1 Message Date
Antonio SJ Musumeci ac5652e30c branches.cpp 2025-04-27 01:03:11 -05:00
Antonio SJ Musumeci 2469c373be branches.cpp 2025-04-26 22:23:48 -05:00
2 changed files with 14 additions and 1 deletions
+12 -1
View File
@@ -194,8 +194,19 @@ namespace l
paths.push_back(glob);
fs::realpathize(&paths);
for(auto &path : paths)
for(const auto &path : paths)
{
bool is_dir;
std::error_code ec;
is_dir = ghc::filesystem::is_directory(path,ec);
if(!ec && !is_dir)
{
syslog_notice("branch path '%s' is not a directory, ignoring",
path.c_str());
continue;
}
branch.path = path;
branches_->push_back(branch);
}
+2
View File
@@ -76,6 +76,8 @@ public:
operator CPtr() const { std::lock_guard<std::mutex> lg(_mutex); return _impl; }
CPtr operator->() const { std::lock_guard<std::mutex> lg(_mutex); return _impl; }
Ptr operator->() { std::lock_guard<std::mutex> lg(_mutex); return _impl; }
public:
void find_and_set_mode_ro();