Remove debug log, and free memory.
Recompile.
Return correct heads for ls-remote.
Addressed comments.
Recompile.