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 da3a086 commit 44f0917Copy full SHA for 44f0917
cli/src/commands/download.ts
@@ -53,6 +53,12 @@ export async function downloadAction(
53
version = options.version
54
} else if (!options.draft) {
55
version = await getLatestSnapshotVersion(datasetId)
56
+ if (
57
+ version.length === 40 /* sha1 */ || version.length === 64 /* sha256 */
58
+ ) {
59
+ // Commit hash -> get the draft instead
60
+ version = undefined
61
+ }
62
}
63
64
// Clone the repo
0 commit comments