Commit 1064d5e0 authored by Tommi Virtanen's avatar Tommi Virtanen

Rename variable to avoid collision with the path package

parent 22b6ee32
......@@ -126,23 +126,23 @@ func initConfig(path string, conf *config.Config) error {
// Init initializes a new FSRepo at the given path with the provided config.
// TODO add support for custom datastores.
func Init(path string, conf *config.Config) error {
func Init(repoPath string, conf *config.Config) error {
// packageLock must be held to ensure that the repo is not initialized more
// than once.
packageLock.Lock()
defer packageLock.Unlock()
if isInitializedUnsynced(path) {
if isInitializedUnsynced(repoPath) {
return nil
}
if err := initConfig(path, conf); err != nil {
if err := initConfig(repoPath, conf); err != nil {
return err
}
for _, b := range componentBuilders() {
if err := b.Init(path, conf); err != nil {
if err := b.Init(repoPath, conf); err != nil {
return err
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment