Merge pull request #3665 from MichaelEischer/sane-list-locks

list: Never lock the repository when listing lock files
This commit is contained in:
Alexander Neumann authored and GitHub committed 2022-03-21 11:14:44 +01:00
commit ca1e2316cf
2 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ func runList(cmd *cobra.Command, opts GlobalOptions, args []string) error {
return err
}
if !opts.NoLock {
if !opts.NoLock && args[0] != "locks" {
lock, err := lockRepo(opts.ctx, repo)
defer unlockRepo(lock)
if err != nil {