Skip to content

Commit 03e009f

Browse files
dacbdcasperdcl
andauthored
cml ci fetch tags with depth/unshallow (#1269)
* fetch tags when depth is 0/unshallow * Update src/cml.js Co-authored-by: Casper da Costa-Luis <[email protected]> Co-authored-by: Casper da Costa-Luis <[email protected]>
1 parent 15f73d0 commit 03e009f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/cml.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,17 @@ class CML {
517517
if (
518518
(await exec('git', 'rev-parse', '--is-shallow-repository')) === 'true'
519519
) {
520-
return await exec('git', 'fetch', '--all', '--unshallow');
520+
return await exec('git', 'fetch', '--all', '--tags', '--unshallow');
521521
}
522522
} else {
523-
return await exec('git', 'fetch', '--all', '--depth', fetchDepth);
523+
return await exec(
524+
'git',
525+
'fetch',
526+
'--all',
527+
'--tags',
528+
'--depth',
529+
fetchDepth
530+
);
524531
}
525532
}
526533
}

0 commit comments

Comments
 (0)