diff --git a/yazi-cli/src/package/git.rs b/yazi-cli/src/package/git.rs index 3d1e85df..01046128 100644 --- a/yazi-cli/src/package/git.rs +++ b/yazi-cli/src/package/git.rs @@ -8,11 +8,11 @@ pub(super) struct Git; impl Git { pub(super) async fn clone(url: &str, path: &Path) -> Result<()> { - Self::exec(|c| c.args(["clone", url]).arg(path)).await + Self::exec(|c| c.args(["clone", "--no-tags", url]).arg(path)).await } pub(super) async fn fetch(path: &Path) -> Result<()> { - Self::exec(|c| c.arg("fetch").current_dir(path)).await + Self::exec(|c| c.args(["fetch", "--no-tags"]).current_dir(path)).await } pub(super) async fn checkout(path: &Path, rev: &str) -> Result<()> {