diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-11-24 19:39:57 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-11-24 19:39:57 -0500 |
| commit | 19349dff649ac8039e8d13e07d33cbdc6f6655b9 (patch) | |
| tree | 3b36973ec12a2567fdbe8af310d52a8381c02dc7 /src | |
| parent | 2d56b517d81ea06debdf3cc307a71bfe626544b5 (diff) | |
Bugfix for downloading the right branch of a module
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules.c b/src/modules.c index 9ebdca09..23b8a0a0 100644 --- a/src/modules.c +++ b/src/modules.c @@ -129,6 +129,7 @@ bool try_install_module(module_info_t mod, bool ask_confirmation) { } print("Installing ", mod.name, " from git..."); if (mod.revision) xsystem("git clone --depth=1 --revision ", mod.revision, " ", mod.git, " ", dest); + else if (mod.version) xsystem("git clone --depth=1 --branch ", mod.version, " ", mod.git, " ", dest); else xsystem("git clone --depth=1 ", mod.git, " ", dest); xsystem("tomo -L ", dest); return true; |
