I have a git repository that was cloned from a bzr repository using git-remote-bzr as follows: git clone bzr::/repo new-repo
.
After a few hundreds of commits, I executed git fsck
and I got the following error for all the bzr commits:
error in commit 41bf5: invalid author/committer line - missing space before email
When I check these revisions with git cat-file -p 41bf5
I can indeed see that the author name and the email are not separated with a space.
How can I add this missing space for all the bad commits ?
I have full access to the repo on the server so I can rewrite the history without any problems. After modifications the users of the code will have to reclone the repository.
I already tried without success the solutions proposed in the following posts:
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…