Don't imply shallow clone default

This commit is contained in:
Wildan M 2025-12-05 08:15:39 +07:00
parent d461f47aee
commit a8452a20c4
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -146,10 +146,7 @@ pub fn fetch(recipe_dir: &Path, recipe: &Recipe, logger: &PtyOut) -> Result<Path
shallow_clone,
}) => {
//TODO: use libgit?
let shallow_clone = match shallow_clone {
Some(o) => *o,
None => rev.is_some(),
};
let shallow_clone = *shallow_clone == Some(true);
if !source_dir.is_dir() {
// Create source.tmp
let source_dir_tmp = recipe_dir.join("source.tmp");