Fix empty git history issue