diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2021-09-24 12:32:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-24 16:32:18 +0000 |
| commit | 67697bba2ba926954508a05628a838457b25fa0e (patch) | |
| tree | 97d3e976b24ed23f79a4da5fa34bf7f3e609890f /internal | |
| parent | dc1c992939579b15c7d0ba7498065185eb2f6655 (diff) | |
Attempt to find the correct default git branch (#1217)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/tests/integration/datasources_git_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/tests/integration/datasources_git_test.go b/internal/tests/integration/datasources_git_test.go index 70e5e529..50b8c02c 100644 --- a/internal/tests/integration/datasources_git_test.go +++ b/internal/tests/integration/datasources_git_test.go @@ -117,6 +117,13 @@ func TestDatasources_GitHTTPDatasource(t *testing.T) { "-i", `{{ .short.glossary.title}}`, ).run() assertSuccess(t, o, e, err, "example glossary") + + // and one with a default branch of 'main' + o, e, err = cmd(t, + "-c", "data=git+https://github.com/hairyhenderson/git-fixtures.git//small_test.json", + "-i", `{{ .data.foo}}`, + ).run() + assertSuccess(t, o, e, err, "bar") } func TestDatasources_GitSSHDatasource(t *testing.T) { |
