Skip to content

Commit

Permalink
fix: Fix locking of cloneDynamicTargets mutx
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed May 24, 2022
1 parent 990da6d commit 501b628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/kluctl_project/targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,11 @@ func (c *LoadedKluctlProject) cloneDynamicTargets(dynamicTargets []*dynamicTarge
if targetInfo.gitProject == nil {
continue
}
mutex.Lock()
if _, ok := uniqueClones[targetInfo.dir]; ok {
mutex.Unlock()
continue
}
mutex.Lock()
uniqueClones[targetInfo.dir] = nil
mutex.Unlock()

Expand Down

0 comments on commit 501b628

Please sign in to comment.