Hi,
I was importing one of our repositories (quite a small one).
I did : subgit configure -layout std --svn-url file:///c:/tmp/svn/msgsrv.sync/MessageServer c:\tmp\git\msgsrv.git
edit c:\tmp\git\msgsrv.git\config - add triggerGitGC = false to [svn], according to other issue here. Config attached
subgit import c:\tmp\git\msgsrv.git
output was
Translating Subversion revisions to Git commits...
IMPORT FAILED
error: fatal: failed to run repack```
Hello Lukas,
could you attach the import log with “failed to run repack” error? We could then analyze what went wrong to prevent such problems in the future.
By default it runs “git -c gc.autoDetach=0 gc” even N revisions (N is configurable using this option). It seems that the this command fails for its internal reasons.
I think it would be useful to check whether the problem is not caused by Git repository corruption:
{code}
git fsck
{code}
If you don’t want this to bother you, you can also disable Git GC triggering:
{code}
[svn]
…
triggerGitGC = false
{code}
In either case, it seems the problem lies outside SubGit. But thanks for the logs anyway! At least we now know that.
Thanks for trying but I can’t find ‘triggerGitGC’ option in the config file logged in the beginning of the log file… The log file always starts with logging your config file.
My bad, I did put the triggerGitGC to git config file in the root folder of the repository, not in the subgit folder.
Now it runs great. Thanks for your support and patience.