AnthonyChiavelli / VisualGit

Graphical, educational python app for working with git repositories
GNU General Public License v3.0
7 stars 2 forks source link

Messy decompressed git object contents #2

Open kahmali opened 10 years ago

kahmali commented 10 years ago

In module LocalRepoApi:

When decompressing a git object in get_git_object_contents(), the output contains a string of characters on the first line, "commit 220☐", that doesn't belong. See sample out below:

commit 220#tree b403ca50027163f927906ad5765519e545f2dea3
parent b3aa5f8c7d6547d28bca11d5b7a4a039c1f4b61d
author Kahmali Rose <abc@mail.com> 1401049080 -0400
committer Kahmali Rose <abc@mail.com> 1401049080 -0400

This is another problem that could be solved by getting the contents of git objects via the Git API.

kahmali commented 10 years ago

This is only an issue with the loose git objects (not packed).