diff --git a/doctest/build.gradle b/doctest/build.gradle index 92b1a1c9e2c..20fa9a32104 100644 --- a/doctest/build.gradle +++ b/doctest/build.gradle @@ -26,8 +26,8 @@ task cloneSqlCli(type: Exec) { if (repoDir.exists()) { // Repository already exists, fetch and checkout latest - commandLine 'git', '-C', repoDir.absolutePath, 'fetch', 'origin', 'main' - commandLine 'git', '-C', repoDir.absolutePath, 'checkout', 'origin/main' + commandLine 'git', '-C', repoDir.absolutePath, 'fetch', 'origin', '1.0-legacy' + commandLine 'git', '-C', repoDir.absolutePath, 'checkout', 'origin/1.0-legacy' } else { // Repository doesn't exist, clone it commandLine 'git', 'clone', 'https://github.com/opensearch-project/sql-cli.git', repoDir.absolutePath