You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Post commit hook traverses submodules, causing git commit to take an extremely long time to complete #3638
The Core submodule is also an LFS repository. The post-commit started going into the Core subdirectory, which it shouldn't do because that's a submodule. Evidence is shown in the attached trace, here's a small snippet:
Because the post commit hook is traversing the submodule files, it makes commits in the parent repository take a very long time. Is this a bug or a configuration issue?
I don't think this is intentional; I think it's a bug in our repository walker, which doesn't ignore submodules as it should. I'll flag this as a bug, and hopefully we can get it fixed for v2.8.0.
@bk2204 I did a test using your commit you just made and it's significantly faster. Enabling GIT_TRACE=1 doesn't show any indication that my submodule was explicitly skipped. Is there any log in particular I should look for to verify that my submodule was skipped? I was looking for something like filepathfilter: rejecting referring to my submodule directory, but don't see it.
Because we simply don't traverse into submodules now (instead of traversing and rejecting them with the filepathfilter), there won't be any specific output that indicates that we're ignoring them. However, you should be able to see an absence of any filepathfilter accepting lines referring to the submodule.
In other words, lines like these should now be absent:
Thanks for the quick response. I'm certainly not seeing those in there anymore. And also like I said, the speed is significantly improved. I wanted to give you that extra feedback that your solution worked. Thanks so much for the fix!
Activity
bk2204 commentedon May 9, 2019
Hey, thanks for writing in.
I don't think this is intentional; I think it's a bug in our repository walker, which doesn't ignore submodules as it should. I'll flag this as a bug, and hopefully we can get it fixed for v2.8.0.
rcdailey commentedon Jun 19, 2019
@bk2204 I did a test using your commit you just made and it's significantly faster. Enabling
GIT_TRACE=1doesn't show any indication that my submodule was explicitly skipped. Is there any log in particular I should look for to verify that my submodule was skipped? I was looking for something likefilepathfilter: rejectingreferring to my submodule directory, but don't see it.bk2204 commentedon Jun 19, 2019
Because we simply don't traverse into submodules now (instead of traversing and rejecting them with the filepathfilter), there won't be any specific output that indicates that we're ignoring them. However, you should be able to see an absence of any filepathfilter accepting lines referring to the submodule.
In other words, lines like these should now be absent:
rcdailey commentedon Jun 19, 2019
Thanks for the quick response. I'm certainly not seeing those in there anymore. And also like I said, the speed is significantly improved. I wanted to give you that extra feedback that your solution worked. Thanks so much for the fix!