Skip to content

Commit 3abe4d5

Browse files
committed
fix(git): dont fetch tags by default
Change Cargo to pass [`--no-tags`] Git CLI option by default. This aligns with how libgit2 works in Cargo. Based on the Git official doc, the flag has been there since at least 2.0.5 [`--no-tags`]: https://git-scm.com/docs/git-fetch/2.0.5#Documentation/git-fetch.txt---no-tags
1 parent f9e20ff commit 3abe4d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cargo/sources/git/utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,6 +1193,8 @@ fn fetch_with_cli(
11931193
cmd.arg("fetch");
11941194
if tags {
11951195
cmd.arg("--tags");
1196+
} else {
1197+
cmd.arg("--no-tags");
11961198
}
11971199
match gctx.shell().verbosity() {
11981200
Verbosity::Normal => {}

0 commit comments

Comments
 (0)