diff --git a/doctest/build.gradle b/doctest/build.gradle index 2c3b6fdf3e8..29ac673429b 100644 --- a/doctest/build.gradle +++ b/doctest/build.gradle @@ -30,7 +30,7 @@ task cloneSqlCli(type: Exec) { 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 + commandLine 'git', 'clone', '-b', '1.0-legacy', 'https://github.com/opensearch-project/sql-cli.git', repoDir.absolutePath } }