This commit is contained in:
parent
30b3be2feb
commit
82b627623f
1 changed files with 4 additions and 1 deletions
|
|
@ -31,6 +31,8 @@ import :Command;
|
||||||
|
|
||||||
namespace fs = std::filesystem;
|
namespace fs = std::filesystem;
|
||||||
|
|
||||||
|
std::unordered_set<std::string> checkedDeps;
|
||||||
|
|
||||||
namespace Crafter {
|
namespace Crafter {
|
||||||
Configuration::Configuration(std::string&& name) : name(std::move(name)) {
|
Configuration::Configuration(std::string&& name) : name(std::move(name)) {
|
||||||
|
|
||||||
|
|
@ -297,7 +299,8 @@ namespace Crafter {
|
||||||
|
|
||||||
// Execute the clone command
|
// Execute the clone command
|
||||||
system(cloneCommand.c_str());
|
system(cloneCommand.c_str());
|
||||||
} else if (!it.contains("commit")) {
|
} else if (!it.contains("commit") && !checkedDeps.contains((cacheDir/depFolder).string())) {
|
||||||
|
checkedDeps.insert((cacheDir/depFolder).string());
|
||||||
system(std::format("cd {} && git pull", (cacheDir/depFolder).string()).c_str());
|
system(std::format("cd {} && git pull", (cacheDir/depFolder).string()).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue