瀏覽代碼

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: