소스 검색

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: