It's possible for an old subversion commit to be changed after it has already been committed. One example is someone editing a commit log message for an old revision with svn propedit -r <revision> --revprop svn:log <URL>
If you already have the affected revision in your git-svn repository clone, running git svn fetch and git svn rebase will not update the old revision. To re-fetch a revision you already have, follow these steps (which assume that the revision is on the remotes/trunk branch)
- Make sure you are in the root of your
git-svncheckout (ls -d .git/svnshould print.git/svn) - Backup your
.gitdirectory with something like:tar cvf - .git | gzip -9 -c > dot-git-backup.tar.gz
orcp -a .git dot-git-backup rm .git/svn/refs/remotes/trunk/.rev_map.*git pack-refs --all- Edit
.git/packed-refsand change the commit hash next torefs/remotes/trunkto the commit before the one you want to re-fetch git svn fetch
