Remove uncessary '\n' from post-receive refname
Add prototype logic to traverse tree