mirror of
https://github.com/restic/restic.git
synced 2026-10-18 23:48:12 +00:00
Merge pull request #3665 from MichaelEischer/sane-list-locks
list: Never lock the repository when listing lock files
This commit is contained in:
2 files changed
+11
-1
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user