Skip to content

Commit b95db68

Browse files
authored
do not return "cancel" if it has been called
1 parent e9ab2b1 commit b95db68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/git/repo_index.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ func (repo *Repository) ReadTreeToTemporaryIndex(treeish string) (filename, tmpD
5555
// if error happens and there is a cancel function, do the clean up
5656
if err != nil && cancel != nil {
5757
cancel()
58+
cancel = nil
5859
}
5960
}()
6061

0 commit comments

Comments
 (0)