Skip to content

Commit ab72b32

Browse files
committed
fix(clone): cannot get includes of undefined
1 parent b12d955 commit ab72b32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cloneRepository.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ module.exports = async (repository, version) => {
3131
const branchSummary = await gitT.branch()
3232
const currentBranch = branchSummary.current
3333

34-
3534
if (version) {
3635
version = `v${version}`
37-
if (!tags.all.includes(version)) {
36+
if (!tags.includes(version)) {
3837
throwError([
3938
'No corresponding template version was found',
4039
'Please confirm that the version number exists in the tags of the template repository.',

0 commit comments

Comments
 (0)