Search backend: clean up repo resolver pt.3
Created by: camdencheek
Builds off https://github.com/sourcegraph/sourcegraph/pull/38602
- Removes a redundant empty string ->
HEAD
- Constructs
Resolved
at the end rather than mutating its fields concurrently
Test plan
Backend integration tests. Should be semantics-preserving.