Skip to content

Commit

Permalink
fix "take" command not honouring user option
Browse files Browse the repository at this point in the history
"take" was simply a partial on "assign", but accidentally used the value
of $USER from the environment rather than `opts["user"]`, preventing the
user from overriding this value in config.yml or as a command-line
argument.
  • Loading branch information
Andrew Haigh committed Jul 1, 2015
1 parent 7b21227 commit 8f1d2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jira/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ Command Options:
setEditing(true)
err = c.CmdComment(args["ISSUE"].(string))
} else if validCommand("take") {
err = c.CmdAssign(args["ISSUE"].(string), user)
err = c.CmdAssign(args["ISSUE"].(string), opts["user"])
} else if validCommand("browse") || validCommand("b") {
opts["browse"] = "true"
err = c.Browse(args["ISSUE"].(string))
Expand Down

0 comments on commit 8f1d2b9

Please sign in to comment.