pack: use git_buf when building the index name
The way we currently do it depends on the subtlety of strlen vs sizeof and the fact that .pack is one longer than .idx. Let's use a git_buf so we can express the manipulation we want much more clearly.
Showing
Please
register
or
sign in
to comment