aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/blame.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/blame.go')
-rw-r--r--modules/git/blame.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/git/blame.go b/modules/git/blame.go
index b30124594d..40e3d4e885 100644
--- a/modules/git/blame.go
+++ b/modules/git/blame.go
@@ -114,12 +114,6 @@ func (r *BlameReader) Close() error {
// CreateBlameReader creates reader for given repository, commit and file
func CreateBlameReader(ctx context.Context, repoPath, commitID, file string) (*BlameReader, error) {
- gitRepo, err := OpenRepositoryCtx(ctx, repoPath)
- if err != nil {
- return nil, err
- }
- gitRepo.Close()
-
return createBlameReader(ctx, repoPath, GitExecutable, "blame", commitID, "--porcelain", "--", file)
}