Radish alpha
r
rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE
Radicle CI adapter for native CI
Radicle
Git
feat: turn of advice about detached head
Lars Wirzenius committed 2 years ago
commit 8c74e710b21893ee85d36ac876642bf29b1bfe63
parent 332cf7e
1 file changed +1 -0
modified src/run.rs
@@ -176,6 +176,7 @@ impl Run {
    }

    fn git_checkout(&mut self, commit: Oid, src: &Path) -> Result<(), RunError> {
+
        self.runcmd(&["git", "config", "advice.detachedHead", "false"], src)?;
        self.runcmd(&["git", "checkout", &commit.to_string()], src)?;
        Ok(())
    }