We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d066292 commit 3af7d6cCopy full SHA for 3af7d6c
get_git.go
@@ -224,7 +224,7 @@ func checkGitVersion(min string) error {
224
}
225
226
fields := strings.Fields(string(out))
227
- if len(fields) != 3 {
+ if len(fields) < 3 {
228
return fmt.Errorf("Unexpected 'git version' output: %q", string(out))
229
230
get_git_test.go
@@ -204,7 +204,7 @@ func TestGitGetter_gitVersion(t *testing.T) {
204
script := filepath.Join(dir, "git")
205
err = ioutil.WriteFile(
206
script,
207
- []byte("#!/bin/sh\necho git version 2.0\n"),
+ []byte("#!/bin/sh\necho \"git version 2.0 (Some Metadata Here)\n\""),
208
0700)
209
if err != nil {
210
t.Fatal(err)
0 commit comments