Преглед на файлове

Update NEWS, fix style.

Jelmer Vernooij преди 9 години
родител
ревизия
dc2e0aa4f8
променени са 2 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 4 0
      NEWS
  2. 1 1
      dulwich/objectspec.py

+ 4 - 0
NEWS

@@ -5,6 +5,10 @@
   * Add a `dulwich.archive` module that can create tarballs.
     Based on code from Jonas Haag in klaus.
 
+  * Fix handling of ambiguous refs in `parse_ref` to make
+    it match the behaviour described in https://git-scm.com/docs/gitrevisions.
+    (Chris Bunney)
+
  BUG FIXES
 
   * Simplify handling of SSH command invocation.

+ 1 - 1
dulwich/objectspec.py

@@ -52,7 +52,7 @@ def parse_ref(container, refspec):
         b"refs/tags/" + refspec,
         b"refs/heads/" + refspec,
         b"refs/remotes/" + refspec,
-        b"refs/remotes/"+refspec+b"/HEAD"
+        b"refs/remotes/" + refspec + b"/HEAD"
     ]
     for ref in possible_refs:
         if ref in container: