Skip to content

Commit

Permalink
Merge pull request #167 from cryptix/fixServeHttp
Browse files Browse the repository at this point in the history
fix setupCmdContext() for subcommands
  • Loading branch information
jbenet committed Oct 14, 2014
2 parents 707f701 + a269e46 commit 7366b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ipfs/ipfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ type cmdContext struct {
// setupCmdContext initializes a cmdContext structure from a given command.
func setupCmdContext(c *commander.Command, online bool) (cc cmdContext, err error) {
rootCmd := c
for ; rootCmd.Parent != nil; rootCmd = c.Parent {
for ; rootCmd.Parent != nil; rootCmd = rootCmd.Parent {
}

cc.configDir, err = getConfigDir(rootCmd)
Expand Down

0 comments on commit 7366b7f

Please sign in to comment.