tests for sha1 helper
misc fixes
misc fixes
fixing bug in utils.c
further fixes to checkout to detect end of tree entries and dfs