summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Wilk <jwilk@jwilk.net>2015-07-23 14:54:27 +0200
committerMaximiliano Curia <maxy@debian.org>2015-09-29 16:03:55 +0200
commit6cf0475c8cc7ba9af71c44a184ecb7067f4047a1 (patch)
tree0b467ee3c849487525acd4da874ee72b0c759a43
parent793cfb34d865c2035a3f340c1e2afdcd9e82ab1e (diff)
issue: Fix creating issue without labels
Set default value of labels to empty list, instead of None which caused: nil is not a array. HTTP Error 422: Unprocessable Entity Fixes #142.
-rwxr-xr-xgit-hub2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hub b/git-hub
index 0e16bf9..332a359 100755
--- a/git-hub
+++ b/git-hub
@@ -1050,7 +1050,7 @@ class IssueCmd (CmdGroup):
"any text after an empty line is used as "
"the optional body" % cls.name)
parser.add_argument('-l', '--label', dest='labels',
- metavar='LABEL', action='append',
+ metavar='LABEL', action='append', default=[],
help="attach LABEL to the %s (can be "
"specified multiple times to set multiple "
"labels)" % cls.name)