Skip to content

Commit e73929b

Browse files
committed
test
1 parent 46fb5b1 commit e73929b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules/git/repo_base_nogogit.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ func (repo *Repository) Close() error {
101101
if repo == nil {
102102
return nil
103103
}
104+
repo.mu.Lock()
105+
defer repo.mu.Unlock()
104106
if repo.catFileBatchCloser != nil {
105107
repo.catFileBatchCloser.Close()
106108
repo.catFileBatchCloser = nil

modules/git/repo_commit_nogogit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (repo *Repository) ResolveReference(name string) (string, error) {
3636

3737
// GetRefCommitID returns the last commit ID string of given reference (branch or tag).
3838
func (repo *Repository) GetRefCommitID(name string) (string, error) {
39-
batch, cancel, err := repo.CatFileBatch(repo.Ctx, true)
39+
batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) // here is the real fatal point?
4040
if err != nil {
4141
return "", err
4242
}

0 commit comments

Comments
 (0)