Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
1064d5e0
Commit
1064d5e0
authored
10 years ago
by
Tommi Virtanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename variable to avoid collision with the path package
parent
22b6ee32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
repo/fsrepo/fsrepo.go
repo/fsrepo/fsrepo.go
+4
-4
No files found.
repo/fsrepo/fsrepo.go
View file @
1064d5e0
...
...
@@ -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
(
p
ath
string
,
conf
*
config
.
Config
)
error
{
func
Init
(
repoP
ath
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
(
p
ath
)
{
if
isInitializedUnsynced
(
repoP
ath
)
{
return
nil
}
if
err
:=
initConfig
(
p
ath
,
conf
);
err
!=
nil
{
if
err
:=
initConfig
(
repoP
ath
,
conf
);
err
!=
nil
{
return
err
}
for
_
,
b
:=
range
componentBuilders
()
{
if
err
:=
b
.
Init
(
p
ath
,
conf
);
err
!=
nil
{
if
err
:=
b
.
Init
(
repoP
ath
,
conf
);
err
!=
nil
{
return
err
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment