Fix for "unknown revision or path not in the working tree" on new repository