We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34bd494 commit 9efc7e2Copy full SHA for 9efc7e2
build-tools/cache_samples.sh
@@ -15,10 +15,9 @@ function clone_sample_repo() {
15
local repoUrl="$1"
16
local repoOutputDir="$2"
17
local repoRevision="$3"
18
- if [[ $revision == "null" ]]; then
19
- git clone $repoUrl $repoOutputDir
20
- else
21
- git clone --single-branch --branch $repoRevision $repoUrl $repoOutputDir
+ git clone $repoUrl $repoOutputDir
+ if [[ $repoRevision != "null" ]]; then
+ git checkout $repoRevision
22
fi
23
}
24
0 commit comments