Add some better debugging to the git_lookup method