From b3dc58e1047cba0778831bdb069c3ceba6ec216e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 10 Dec 2023 16:18:30 +0000 Subject: [PATCH] hyprpm: clone plugins recursively --- hyprpm/src/core/PluginManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp index d3e6f171..e6e0a750 100644 --- a/hyprpm/src/core/PluginManager.cpp +++ b/hyprpm/src/core/PluginManager.cpp @@ -105,7 +105,7 @@ bool CPluginManager::addNewPluginRepo(const std::string& url) { progress.printMessageAbove(std::string{Colors::RESET} + " → Cloning " + url); - std::string ret = execAndGet("cd /tmp/hyprpm && git clone " + url + " new"); + std::string ret = execAndGet("cd /tmp/hyprpm && git clone --recursive " + url + " new"); if (!std::filesystem::exists("/tmp/hyprpm/new")) { std::cerr << "\n" << Colors::RED << "✖" << Colors::RESET << " Could not clone the plugin repository. shell returned:\n" << ret << "\n"; @@ -438,7 +438,7 @@ bool CPluginManager::updatePlugins(bool forceUpdateAll) { progress.printMessageAbove(std::string{Colors::RESET} + " → Cloning " + repo.url); - std::string ret = execAndGet("cd /tmp/hyprpm && git clone " + repo.url + " update"); + std::string ret = execAndGet("cd /tmp/hyprpm && git clone --recursive " + repo.url + " update"); if (!std::filesystem::exists("/tmp/hyprpm/update")) { std::cout << "\n" << std::string{Colors::RED} + "✖" + Colors::RESET + " could not clone repo: shell returned:\n" + ret;