MCPcopy Create free account
hub / github.com/github/gh-aw / isGitRepo

Function isGitRepo

pkg/cli/git.go:22–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20var gitLog = logger.New("cli:git")
21
22func isGitRepo() bool {
23 _, err := gitutil.FindGitRoot()
24 return err == nil
25}
26
27// findGitRootForPath finds the root directory of the git repository containing the specified path
28func findGitRootForPath(path string) (string, error) {

Callers 7

AddResolvedWorkflowsFunction · 0.85
checkWorkflowFileStatusFunction · 0.85
RemoveWorkflowsFunction · 0.85
TestIsGitRepoFunction · 0.85
InitRepositoryFunction · 0.85
transferPRFunction · 0.85
checkGitRepositoryMethod · 0.85

Calls 1

FindGitRootFunction · 0.92

Tested by 1

TestIsGitRepoFunction · 0.68