Skip to content

Commit 1f158ee

Browse files
committed
refactor: use --tags instead of --force for git fetch command if Fetch without tags is turned off (#684)
Signed-off-by: leo <[email protected]>
1 parent 503f700 commit 1f158ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/Fetch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public Fetch(string repo, string remote, bool noTags, bool prune, Action<string>
1616
if (noTags)
1717
Args += "--no-tags ";
1818
else
19-
Args += "--force ";
19+
Args += "--tags ";
2020

2121
if (prune)
2222
Args += "--prune ";

0 commit comments

Comments
 (0)