Skip to content

Commit b2e06ca

Browse files
authored
Fix the async-profiler re-fetch (#249)
1 parent 394a7a0 commit b2e06ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ddprof-lib/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,10 @@ def cloneAPTask = tasks.register('cloneAsyncProfiler') {
291291
println "async-profiler commit hash differs (current: ${currentCommit}, expected: ${commit_lock}), updating..."
292292
exec {
293293
workingDir targetDir.absolutePath
294-
commandLine 'git', 'fetch', 'origin', branch_lock, '--depth', '1'
294+
commandLine 'rm', '-rf', targetDir.absolutePath
295+
}
296+
exec {
297+
commandLine 'git', 'clone', '--branch', branch_lock, 'https://github.com/datadog/async-profiler.git', targetDir.absolutePath
295298
}
296299
exec {
297300
workingDir targetDir.absolutePath

0 commit comments

Comments
 (0)