Skip to content

relizy / assertRefAvailable

Function: assertRefAvailable() ​

assertRefAvailable(ref, cwd): void

Defined in: src/core/commitlint/git.ts:106

Throws a helpful error when the start of the range is not in the local history, e.g. in a shallow clone of the CI.

Parameters ​

ref ​

string

cwd ​

string

Returns ​

void

Released under the MIT License.