serve: Use non-exclusive read lock

This commit is contained in:
Alexander Neumann 2024-04-28 22:01:25 +02:00
parent fb45bd5d42
commit cd720149eb
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func runWebServer(ctx context.Context, opts ServeOptions, gopts GlobalOptions, a
return errors.Fatal("this command does not accept additional arguments")
}
ctx, repo, unlock, err := openWithExclusiveLock(ctx, gopts, gopts.NoLock)
ctx, repo, unlock, err := openWithReadLock(ctx, gopts, gopts.NoLock)
if err != nil {
return err
}