MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / assertGitRepo

Function assertGitRepo

src/utils/git.ts:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import { outro, spinner } from '@clack/prompts';
6
7export const assertGitRepo = async () => {
8 try {
9 await execa('git', ['rev-parse']);
10 } catch (error) {
11 throw new Error(error as string);
12 }
13};
14
15// const excludeBigFilesFromDiff = ['*-lock.*', '*.lock'].map(
16// (file) => `:(exclude)${file}`

Callers 1

Calls 1

execaFunction · 0.85

Tested by

no test coverage detected