From a6c89ca4ca426fbc37fc5718248db0cf22cdc0a4 Mon Sep 17 00:00:00 2001 From: Michal Date: Mon, 25 Jul 2022 12:22:50 +0100 Subject: [PATCH] Fixed repository mode not pulling patches etc --- src/operations/clone.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/operations/clone.rs b/src/operations/clone.rs index 9425e12..09e2536 100644 --- a/src/operations/clone.rs +++ b/src/operations/clone.rs @@ -103,9 +103,9 @@ pub fn clone(verbose: bool) { // Create an empty directory with repo.name and enter it let root_dir = env::current_dir().unwrap(); - // Git clone the repo with the `-n` flag to not immediately checkout the files + // Git clone the repo Command::new("git") - .args(&["clone", &r.url, &r.name, "-n"]) + .args(&["clone", &r.url, &r.name]) .args(if r.branch.is_some() { vec!["-b", r.branch.as_ref().unwrap()] } else { @@ -122,14 +122,7 @@ pub fn clone(verbose: bool) { // Git checkout the PKGBUILD from the hash if r.extra.is_some() { Command::new("git") - .args(&["checkout", r.extra.as_ref().unwrap(), "PKGBUILD"]) - .spawn() - .unwrap() - .wait() - .unwrap(); - } else { - Command::new("git") - .args(&["checkout", "HEAD", "PKGBUILD"]) + .args(&["checkout", r.extra.as_ref().unwrap()]) .spawn() .unwrap() .wait()