Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git filter-branches - no progress at end

Tags:

git

I just converted a 10G CVS repo (about 120 modules) in one single git repo using cvs2git without any errors on a RHEL5 machine. I'd like to split one subdirectory+history off the repository and create a new one. (Like: How can I move a single directory from a git repository to a new repository whilst maintaining the history?)

I tried:

git filter-branch --subdirectory-filter xxx.model -- --all

which works fine, until the last item is processed - then it hangs using CPU without any progress. Using strace, it looks something like this: [broken link]. strace-ing all forks ends up in a >2.5G output - I don't know if it grows bigger; I stopped it.

What is causing that strange behaviour? Is there any other method of creating a new repository with a subdirectory+history of an existing repository?

like image 275
usr200910 Avatar asked Jul 29 '26 18:07

usr200910


1 Answers

The operation finished successfully after hours of running. The only problem was, that it seemed for us that there is no progress, but that's not true. There's just no output.

Set GIT_TRACE=1 and redo the command and there is output and progress visible.

It's possible that the high amount of tags caused the operation to slow down.

like image 168
usr200910 Avatar answered Aug 03 '26 20:08

usr200910



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!