# Re: \[PATCH 03/21\] serve: use repository pointer to get config

- From: Junio C Hamano \<hidden\>
- Date: 2023-02-24 17:59:40 
- List: git
- Page: https://ratatoskr.run/git/2023/02/7965701
- Thread: https://ratatoskr.run/git/2023/02/7965701/t.md

```text
Jeff King [ref] writes:

> A few of the v2 "serve" callbacks ignore their repository parameter and
> read config using the_repository (either directly or implicitly by
> calling wrapper functions). This isn't a bug since the server code only
> handles a single main repository anyway (and indeed, if you look at the
> callers, these repository parameters will always be the_repository). But
> in the long run we want to get rid of the_repository, so let's take a
> tiny step in that direction.
>
> As a bonus, this silences some -Wunused-parameter warnings.

;-)
```
