This commit is contained in:
Jabberwocky238
2026-07-16 08:42:21 -04:00
parent 3de46894d0
commit c64116069e
5 changed files with 13 additions and 45 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ func (c *Config) RepoRoot() string {
// Prepare checks that the config is valid and creates the repo root if needed.
func (c *Config) Prepare() error {
var err error
if c.DBUri == "" && c.SkipAuth == false {
return errors.New("simplegit: -db is required unless -skip-auth (e.g. sqlite://state.db)")
if c.DBUri == "" {
return errors.New("simplegit: -db is required (e.g. sqlite://state.db)")
}
if err := os.MkdirAll(c.RepoRoot(), 0o755); err != nil {
return fmt.Errorf("simplegit: Failed to create data root: %s (%v)", c.RepoRoot(), err)