Closed teto closed 4 years ago
Hey @teto, thanks for the feedback! I appreciated that you supplied the logs :)
Actually the program only checks if any entry in the path is a git directory, since you set log level
to trace
it is normal to see this output. Nothing unusual.
It shouldn't be a problem to find your repositories in the home folder. Are they located directly under the $HOME
or somewhere deeper? If it is the case you can try recursive option.
Some large repositories cause problem only if you focus into them (by pressing tab
) since go-git
is a little bit slow and the interface should be handled in a better way, which I have an intention to fix. Nevertheless, the initial loading is somewhat lazy loading, that means it actually just opens the repository in a shallow way.
Also, the program should open up anyway if there is even a single repository. I'm really curious about the issue right now.
ps. I cloned linux kernel to my home folder and it open up without errors.
I've uploaded an strace in case it helps, https://transfer.sh/sDBtf/log
I wonder why it's going into hidden directories, and recursively ? Is it recursive by default ? (seems the depth was 0). There seems to be many futex calls timing out. Some of my directories are symlinks too so I wonder if it's an issue as well.
Actually it turns out there was a subtle bug in the recursive function. I've fixed it. But this issue is not something related with recursion I believe. But we can give it a try. I will prepare a release soon.
Symlinks are not making an issue for gitbatch. I also use some repositories with symlinks. For the futex calls side: I will look at the strace
but it may be related to go runtime since I am loading repositories not sequentially but concurrently with mutexes.
I confirm the recent changes don't fix it.
Dunno what changed but retried recently and it worked :s closing ;)
I've packaged gitbatch for nixos since it looks exactly what I was looking for. It works in a folder with 5 repositories but when I run it in my $HOME which contains ~15/20 git repositories (with a few big ones kernel, nixpkgs, wireshark, several worktrees), it seems stuck. I am surprised it considers some dotfiles as directories as well ? (Ia have a few dotfiles that are symlinks to readonly files, maybe that confuses gitbatch ?).
I let it run for 20 minutes without any new output. htop shows no cpu or mem usage :s