Skip to content

gitserver: Remove execSafe

Administrator requested to merge rs/remove-execsafe into main

Created by: ryanslade

It was only used in one place, when calling GetDefaultBranch. All calls end up in exec on the server which checks commands using gitdomain.IsAllowedGitCmd so the check in execSafe was redundant.

Closes https://github.com/sourcegraph/sourcegraph/issues/33890

Test plan

Unit tests updated

Merge request reports

Loading