diff --git a/doctest/build.gradle b/doctest/build.gradle index 6680411c752..dab504b3f4b 100644 --- a/doctest/build.gradle +++ b/doctest/build.gradle @@ -25,8 +25,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