diff --git a/installer/src-tauri/src/installer.rs b/installer/src-tauri/src/installer.rs index 5af9001c11..eccb10a35b 100644 --- a/installer/src-tauri/src/installer.rs +++ b/installer/src-tauri/src/installer.rs @@ -8,6 +8,7 @@ use std::thread; const DEFAULT_REPO_URL: &str = "https://github.com/Osmantic/ODS.git"; const DEFAULT_INSTALL_REF: &str = "main"; +const GIT_BRANCH_ARG: &str = "--branch"; const TRANSFERRED_REPO_URL_BYTES: &[u8] = &[ 104, 116, 116, 112, 115, 58, 47, 47, 103, 105, 116, 104, 117, 98, 46, 99, 111, 109, 47, 76, 105, 103, 104, 116, 45, 72, 101, 97, 114, 116, 45, 76, 97, 98, 115, 47, 79, 68, 83, 46, 103, @@ -197,7 +198,7 @@ fn ensure_checkout(install_dir: &Path) -> Result<(), String> { "clone", "--depth", "1", - "--branch", + GIT_BRANCH_ARG, install_ref(), repo_url(), ])