Files
abra/pkg/git/common.go
decentral1se ff217837b2
Some checks failed
continuous-integration/drone/push Build is failing
WIP: feat: translation support
See #483
2025-08-23 16:20:48 +02:00

17 lines
310 B
Go

package git
import (
"errors"
"os"
"coopcloud.tech/abra/pkg/i18n"
)
// EnsureGitRepo ensures a git repo .git folder exists
func EnsureGitRepo(repoPath string) error {
if _, err := os.Stat(repoPath); os.IsNotExist(err) {
return errors.New(i18n.G("no .git directory in %s?", repoPath))
}
return nil
}