CommitTimestamp returns the committer timestamp of the given commit OID.
(ctx context.Context, repo model.RepoConfig, oid string)
| 807 | _, err := runGit(ctx, repo.GitDir, args...) |
| 808 | return err |
| 809 | }) |
| 810 | } |
| 811 | |
| 812 | func (s *Store) FetchRefNonInteractive(ctx context.Context, repo model.RepoConfig, ref string) error { |
| 813 | return s.fetchRef(ctx, repo, ref, nonInteractiveGitEnv()) |
| 814 | } |
| 815 | |
| 816 | func (s *Store) FetchRefWithCredentials(ctx context.Context, repo model.RepoConfig, ref string) error { |
| 817 | _, env, err := credentialEnv(repo.RemoteURL) |
| 818 | if err != nil { |
| 819 | return err |
| 820 | } |
| 821 | return s.fetchRef(ctx, repo, ref, env) |
| 822 | } |