mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Improve masterlist update logging
This commit is contained in:
@@ -88,7 +88,7 @@ void GitHelper::InitialiseOptions(const std::string& branch,
|
||||
const std::string& filenameToCheckout) {
|
||||
if (logger_) {
|
||||
logger_->debug(
|
||||
"Setting up checkout options uUsing branch {} and filename {}.",
|
||||
"Setting up checkout options using branch {} and filename {}.",
|
||||
branch,
|
||||
filenameToCheckout);
|
||||
}
|
||||
@@ -183,7 +183,7 @@ void GitHelper::Clone(const std::filesystem::path& path,
|
||||
|
||||
// Clone the remote repository.
|
||||
if (logger_) {
|
||||
logger_->info("Repository doesn't exist, cloning the remote repository.");
|
||||
logger_->info("Repository doesn't exist, cloning the remote repository at \"{}\".", url);
|
||||
}
|
||||
|
||||
fs::create_directories(path.parent_path());
|
||||
|
||||
@@ -107,10 +107,6 @@ bool Masterlist::Update(const std::filesystem::path& path,
|
||||
if (path.empty() || repoUrl.empty() || repoBranch.empty())
|
||||
throw std::invalid_argument("Repository path, URL and branch must not be empty.");
|
||||
|
||||
if (logger) {
|
||||
logger->debug("Setting up checkout options.");
|
||||
logger->debug("Using remote URL {} and branch {}", repoUrl, repoBranch);
|
||||
}
|
||||
git.InitialiseOptions(repoBranch, filename);
|
||||
|
||||
// Now try to access the repository if it exists, or clone one if it doesn't.
|
||||
|
||||
Reference in New Issue
Block a user