瀏覽代碼

Bugfix: cmd_reset could not determine the mode

Michael K 11 年之前
父節點
當前提交
053ad0e08c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      bin/dulwich

+ 1 - 0
bin/dulwich

@@ -234,6 +234,7 @@ def cmd_tag(args):
 
 def cmd_reset(args):
     opts, args = getopt(args, "", ["hard", "soft", "mixed"])
+    opts = dict(opts)
     mode = ""
     if "--hard" in opts:
         mode = "hard"