Sfoglia il codice sorgente

Bugfix: cmd_reset could not determine the mode

Michael K 11 anni fa
parent
commit
053ad0e08c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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"