pkg/vcs/git: simplify string trimming
Created by: slimsag
I accidentally failed to push this commit up as part of https://github.com/sourcegraph/sourcegraph/pull/5626
Test plan: Existing unit tests.
Created by: slimsag
I accidentally failed to push this commit up as part of https://github.com/sourcegraph/sourcegraph/pull/5626
Test plan: Existing unit tests.