Added checkout to HEAD before anything whenever addEntry is called