Skip to content

Commit 9efc7e2

Browse files
committed
Allow commit id as revision
Signed-off-by: thepetk <[email protected]>
1 parent 34bd494 commit 9efc7e2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build-tools/cache_samples.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ function clone_sample_repo() {
1515
local repoUrl="$1"
1616
local repoOutputDir="$2"
1717
local repoRevision="$3"
18-
if [[ $revision == "null" ]]; then
19-
git clone $repoUrl $repoOutputDir
20-
else
21-
git clone --single-branch --branch $repoRevision $repoUrl $repoOutputDir
18+
git clone $repoUrl $repoOutputDir
19+
if [[ $repoRevision != "null" ]]; then
20+
git checkout $repoRevision
2221
fi
2322
}
2423

0 commit comments

Comments
 (0)