s
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user