fix "take" command not honouring user option

"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.
This commit is contained in:
Andrew Haigh
2015-07-01 16:21:26 +10:00
parent abc3953448
commit 10c4aef671
+1 -1
View File
@@ -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))