Skip to content

Commit

Permalink
Exclude annotated tags when importing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Dec 28, 2016
1 parent 6676b7f commit 9785eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dulwich/porcelain.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def clone(source, target=None, bare=False, checkout=None,
r.refs.import_refs(
b'refs/tags',
{n[len(b'refs/tags/'):]: v for (n, v) in remote_refs.items()
if n.startswith(b'refs/tags/')})
if n.startswith(b'refs/tags/') and not n.endswith(b'^{}')})
r[b"HEAD"] = remote_refs[b"HEAD"]
if checkout:
errstream.write(b'Checking out HEAD\n')
Expand Down

0 comments on commit 9785eb5

Please sign in to comment.