Package: python-git
Version: 0.1.4.1-2
Severity: minor
Tags: patch

Calling git.repo.Repo.heads(self) uselessly prints some SHAs to sys.stdout,
probably a debugging artefact left by upstream:

  In [11]: repo
  Out[11]: <GitPython.Repo "/home/lamby/temp/11291638-qsIi/.git">

  In [15]: repo.heads
  refs/heads/master9a9e7f7f6ef6e229fac91233c2fbea7be2d24a24
  refs/heads/master9a9e7f7f6ef6e229fac91233c2fbea7be2d24a24
  Out[15]: [<GitPython.Head "master">]

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [EMAIL PROTECTED]
       `-
diff -urNd python-git-0.1.4.1.orig/lib/git/head.py 
python-git-0.1.4.1/lib/git/head.py
--- python-git-0.1.4.1.orig/lib/git/head.py     2008-11-29 16:48:34.000000000 
+0000
+++ python-git-0.1.4.1/lib/git/head.py  2008-11-29 16:48:41.000000000 +0000
@@ -103,7 +103,6 @@
         Returns
             GitPython.Head
         """
-        print line
         full_name, ids = line.split("\x00")
         name = full_name.split("/")[-1]
         c = commit.Commit(repo, **{'id': ids})

Attachment: signature.asc
Description: PGP signature

Reply via email to