now handling errors with brand new repos that do not have HEAD yet because there was not yet any commit