mirror of https://github.com/go-gitea/gitea
Lazy load object format with command line and don't do it in OpenRepository (#29712)
Most time, when invoking `git.OpenRepository`, `objectFormat` will not be used, so it's a waste to invoke commandline to get the object format. This PR make it a lazy operation, only invoke that when necessary.pull/29722/head^2
parent
7f856d5d74
commit
e84e5db6de
Loading…
Reference in new issue