diff options
-rw-r--r-- | hyprpm/src/core/PluginManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp index af946785..46b6db23 100644 --- a/hyprpm/src/core/PluginManager.cpp +++ b/hyprpm/src/core/PluginManager.cpp @@ -162,7 +162,7 @@ bool CPluginManager::addNewPluginRepo(const std::string& url) { std::string repohash = execAndGet("cd /tmp/hyprpm/new/ && git rev-parse HEAD"); if (repohash.length() > 0) repohash.pop_back(); - repo.name = url.substr(url.find_last_of('/') + 1); + repo.name = pManifest->m_sRepository.name.empty() ? url.substr(url.find_last_of('/') + 1) : pManifest->m_sRepository.name; repo.url = url; repo.hash = repohash; for (auto& p : pManifest->m_vPlugins) { |