Pass context to lockRepo

This commit is contained in:
Michael Eischer committed 2020-10-09 22:39:06 +02:00
1 parent 37a5e2d681
commit 0c9efa9c2a
21 files changed
+30 -30

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ func runMigrate(opts MigrateOptions, gopts GlobalOptions, args []string) error {
return err
}
lock, err := lockRepoExclusive(repo)
lock, err := lockRepoExclusive(gopts.ctx, repo)
defer unlockRepo(lock)
if err != nil {
return err