Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Not able to support all of the git object #37

Open
catatsuy opened this issue Jan 28, 2014 · 0 comments
Open

Not able to support all of the git object #37

catatsuy opened this issue Jan 28, 2014 · 0 comments

Comments

@catatsuy
Copy link

The commit id d9bb4be · git/git warn "unknown header ''" when I use this gem on git/git.

It is the unexpected implementation of Grit::GitRuby::Commit::from_raw in grit/lib/grit/git-ruby/git_object.rb .

require "grit"

GIT_REPO = '../git'

repo_grit   = Grit::Repo.new(GIT_REPO)
repo_grit.commit('d9bb4be53bc5185244b4be986')

output:

header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb
unknown header '' in commit d9bb4be53bc5185244b4be9860562a012803bacb

dump all_headers

[["tree", "399705cdf254f291b50418c2b1fd46586edcb145"],
 ["parent", "79fcbf7e703ca5805ebd46b2c7e09d0703f1c1ff"],
 ["parent", "1b2c79e63e5afa3cecb3ab4a40cb414dbe6511ce"],
 ["author", "Junio C Hamano <gitster@pobox.com> 1390338977 -0800"],
 ["committer", "Junio C Hamano <gitster@pobox.com> 1390338977 -0800"],
 ["mergetag", "object 1b2c79e63e5afa3cecb3ab4a40cb414dbe6511ce"],
 ["", "type commit"],
 ["", "tag gitgui-0.19.0"],
 ["", "tagger Pat Thoyts <patthoyts@users.sourceforge.net> 1390066238 +0000"],
 ["", ""],
 ["", "git-gui 0.19.0"],
 ["", "-----BEGIN PGP SIGNATURE-----"],
 ["", "Version: GnuPG v1.4.14 (GNU/Linux)"],
 ["", ""],
 ["", "iQCVAwUAUtq6P2B90JXwhOSJAQK3zQP/T+cOevbKCwFl9mif3EtgPgCoFS9Yd/93"],
 ["", "FYgoKxZh3t9i0Smo9EUggyEkx22v7vONwglGP1wCmCmniQRoaoTW4WBxJFJlEegt"],
 ["", "Li/7OilkwTrSgu1RFZTtpW7zYpg08YrkehFTo6Ntye5gyxZeHsmgFv56f6Ef9Egj"],
 ["", "qEf8xXLyjX4="],
 ["", "=IBoS"],
 ["", "-----END PGP SIGNATURE-----"]]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant