MCPcopy Index your code
hub / github.com/coder/coder / gitAvailable

Method gitAvailable

agent/agentgit/agentgit.go:103–106  ·  view source on GitHub ↗

gitAvailable returns true if the configured git binary can be found in PATH.

()

Source from the content-addressed store, hash-verified

101// gitAvailable returns true if the configured git binary can be found
102// in PATH.
103func (h *Handler) gitAvailable() bool {
104 _, err := exec.LookPath(h.gitBin)
105 return err == nil
106}
107
108// Subscribe processes a subscribe message, resolving paths to git repo
109// roots and adding new repos to the watch set. Returns true if any new

Callers 2

SubscribeMethod · 0.95
ScanMethod · 0.95

Implementers 8

dispatchInterceptorcoderd/notifications/utils_test.go
chanHandlercoderd/notifications/utils_test.go
barrierHandlercoderd/notifications/metrics_test.go
fakeHandlercoderd/notifications/notifications_tes
santaHandlercoderd/notifications/manager_test.go
InboxHandlercoderd/notifications/dispatch/inbox.go
SMTPHandlercoderd/notifications/dispatch/smtp.go
WebhookHandlercoderd/notifications/dispatch/webhook.

Calls

no outgoing calls

Tested by

no test coverage detected