Commit Diff
- Commit:
a7245e84638203d5ac6335048a939f4a3436d392
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
- Message:
- make 'tog diff' release the work tree lock earlier Avoids 'work tree is already locked' errors from got commands while the 'tog diff' command remains running.
- Actions:
- Patch | Tree
--- tog/tog.c +++ tog/tog.c @@ -6189,6 +6189,10 @@ cmd_diff(int argc, char *argv[]) error = set_tog_base_commit(repo, worktree); if (error != NULL) goto done; + + /* Release work tree lock. */ + got_worktree_close(worktree); + worktree = NULL; } error = view_loop(view);