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
c28944ce
Commit
c28944ce
authored
10 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
have repo tilde expand paths
parent
188c37e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
repo/fsrepo/fsrepo.go
repo/fsrepo/fsrepo.go
+7
-0
No files found.
repo/fsrepo/fsrepo.go
View file @
c28944ce
...
...
@@ -16,6 +16,7 @@ import (
lockfile
"github.com/jbenet/go-ipfs/repo/fsrepo/lock"
serialize
"github.com/jbenet/go-ipfs/repo/fsrepo/serialize"
dir
"github.com/jbenet/go-ipfs/thirdparty/dir"
u
"github.com/jbenet/go-ipfs/util"
debugerror
"github.com/jbenet/go-ipfs/util/debugerror"
)
...
...
@@ -145,6 +146,12 @@ func (r *FSRepo) Open() error {
packageLock
.
Lock
()
defer
packageLock
.
Unlock
()
expPath
,
err
:=
u
.
TildeExpansion
(
r
.
path
)
if
err
!=
nil
{
return
err
}
r
.
path
=
expPath
if
r
.
state
!=
unopened
{
return
debugerror
.
Errorf
(
"repo is %s"
,
r
.
state
)
}
...
...
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