Skip to content

Commit eda0845

Browse files
authored
Bump JGit 6.5 and use depth 1 when cloning repos
Signed-off-by: Alexander Stram <[email protected]>
1 parent 4343e33 commit eda0845

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules/nextflow/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies {
3535
api "com.beust:jcommander:1.35"
3636
api("com.esotericsoftware.kryo:kryo:2.24.0") { exclude group: 'com.esotericsoftware.minlog', module: 'minlog' }
3737
api('org.iq80.leveldb:leveldb:0.12')
38-
api('org.eclipse.jgit:org.eclipse.jgit:6.2.0.202206071550-r')
38+
api('org.eclipse.jgit:org.eclipse.jgit:6.5.0.202303070854-r')
3939
api ('javax.activation:activation:1.1.1')
4040
api ('javax.mail:mail:1.4.7')
4141
api ('org.yaml:snakeyaml:2.0')

modules/nextflow/src/main/groovy/nextflow/scm/AssetManager.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ class AssetManager {
594594
clone
595595
.setURI(cloneURL)
596596
.setDirectory(localPath)
597+
.setDepth(1)
597598
.setCloneSubmodules(manifest.recurseSubmodules)
598599
.call()
599600

@@ -674,6 +675,7 @@ class AssetManager {
674675

675676
clone.setURI(uri)
676677
clone.setDirectory(directory)
678+
clone.setDepth(1)
677679
clone.setCloneSubmodules(manifest.recurseSubmodules)
678680
if( provider.hasCredentials() )
679681
clone.setCredentialsProvider( provider.getGitCredentials() )

0 commit comments

Comments
 (0)