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
068c0375
Commit
068c0375
authored
Oct 02, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: get to root cmd for config flag
parent
7bf7afb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
cmd/ipfs/ipfs.go
cmd/ipfs/ipfs.go
+5
-1
No files found.
cmd/ipfs/ipfs.go
View file @
068c0375
...
...
@@ -149,7 +149,11 @@ type cmdContext struct {
// setupCmdContext initializes a cmdContext structure from a given command.
func
setupCmdContext
(
c
*
commander
.
Command
,
online
bool
)
(
cc
cmdContext
,
err
error
)
{
cc
.
configDir
,
err
=
getConfigDir
(
c
.
Parent
.
Parent
)
rootCmd
:=
c
for
;
rootCmd
.
Parent
!=
nil
;
rootCmd
=
c
.
Parent
{
}
cc
.
configDir
,
err
=
getConfigDir
(
rootCmd
)
if
err
!=
nil
{
return
}
...
...
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