Skip to content

Commit 9aa933e

Browse files
authored
Update modules/git/repo_index.go
1 parent b95db68 commit 9aa933e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/repo_index.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (repo *Repository) ReadTreeToTemporaryIndex(treeish string) (filename, tmpD
7373
}
7474
err = repo.ReadTreeToIndex(treeish, filename)
7575
if err != nil {
76-
return "", "", func() {}, err
76+
return "", "", cancel, err
7777
}
7878
return filename, tmpDir, cancel, err
7979
}

0 commit comments

Comments
 (0)