Fix build of remote_server when not in git repo (#24424)

Followup to #24258

Release Notes:

- N/A
35ef269233Michael Sloan committed on 2/7/2025, 4:35:22 AM· committed by GitHubparentd97adfc
1 file changedLine totals unavailable