diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2022-01-09 17:12:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-09 22:12:13 +0000 |
| commit | 155803de7d5c1df5edd456a45a19008c9ae5ea7b (patch) | |
| tree | 7bdc7501e3450ea2a2fafa2521ff0d6a165a1a0e /data/datasource_git.go | |
| parent | d03538dcbc6f7d22e02c44269b63ff1d54020ed4 (diff) | |
Propagate context into datasource read functions (#1282)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'data/datasource_git.go')
| -rw-r--r-- | data/datasource_git.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/data/datasource_git.go b/data/datasource_git.go index bd1811b4..c2673dd3 100644 --- a/data/datasource_git.go +++ b/data/datasource_git.go @@ -27,8 +27,7 @@ import ( "github.com/go-git/go-git/v5/storage/memory" ) -func readGit(source *Source, args ...string) ([]byte, error) { - ctx := context.TODO() +func readGit(ctx context.Context, source *Source, args ...string) ([]byte, error) { g := gitsource{} u := source.URL |
