Skip to content

Commit 60e611d

Browse files
committed
refactor: Stop passing a default value to updateWorkingTree()
Signed-off-by: Frank Viernau <[email protected]>
1 parent 51204b5 commit 60e611d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scanner/src/main/kotlin/provenance/PackageProvenanceResolver.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class DefaultPackageProvenanceResolver(
224224

225225
revisionCandidates.forEachIndexed { index, revision ->
226226
logger.info { "Trying revision candidate '$revision' (${index + 1} of ${revisionCandidates.size})." }
227-
val result = vcs.updateWorkingTree(workingTree, revision, recursive = false)
227+
val result = vcs.updateWorkingTree(workingTree, revision)
228228

229229
if (pkg.vcsProcessed.path.isNotBlank() &&
230230
!workingTree.workingDir.resolve(pkg.vcsProcessed.path).exists()

scanner/src/main/kotlin/provenance/ProvenanceDownloader.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class DefaultProvenanceDownloader(
7878

7979
private suspend fun downloadFromVcs(provenance: RepositoryProvenance, downloadDir: File) {
8080
workingTreeCache.use(provenance.vcsInfo) { vcs, workingTree ->
81-
vcs.updateWorkingTree(workingTree, provenance.resolvedRevision, recursive = false)
81+
vcs.updateWorkingTree(workingTree, provenance.resolvedRevision)
8282

8383
val root = workingTree.getRootPath()
8484

0 commit comments

Comments
 (0)