nx
Version:
13 lines (12 loc) • 557 B
TypeScript
/**
* Git parses any argument beginning with `-` as an option rather than a
* revision, so a flag-shaped revision could smuggle options such as
* `--upload-pack` into the git commands Nx runs.
*/
export declare function assertValidGitRevision(revision: string): void;
/**
* For refs Nx itself recorded from `git rev-parse` and later read back off
* disk, where anything other than a commit sha means the value was tampered
* with rather than that the user picked an unusual revision.
*/
export declare function assertValidGitSha(sha: string): void;