Skip to content

Commit

Permalink
add --no-tags option when running native git fetch - if we need tags,…
Browse files Browse the repository at this point in the history
… they will be present in the refspec and thus fetched - otherwise, when tags are disabled, unnecessary tags pointing to all fetched commts are fetched
  • Loading branch information
vbedrosova committed Sep 14, 2021
1 parent 010e90c commit 1fe5224
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -64,6 +64,7 @@ public void fetch(@NotNull Repository db, @NotNull URIish fetchURI, @NotNull Col
final jetbrains.buildServer.buildTriggers.vcs.git.command.FetchCommand fetch =
gitFacade.fetch()
.setRemote(fetchURI.toString())
.setFetchTags(false)
.setAuthSettings(settings.getAuthSettings()).setUseNativeSsh(true)
.setTimeout(myConfig.getFetchTimeout())
.setRetryAttempts(myConfig.getConnectionRetryAttempts())
Expand Down

0 comments on commit 1fe5224

Please sign in to comment.