Commit 12314ad41528fec74eb27b6f444791c2c06f39ef

Stefan Sperling 2019-08-31T09:38:14

make 'tog blame' release its work tree lock before the main loop

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/tog/tog.c b/tog/tog.c
index 30c5b86..f6da9f4 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -3858,6 +3858,11 @@ cmd_blame(int argc, char *argv[])
 	error = open_blame_view(view, in_repo_path, commit_id, &refs, repo);
 	if (error)
 		goto done;
+	if (worktree) {
+		/* Release work tree lock. */
+		got_worktree_close(worktree);
+		worktree = NULL;
+	}
 	error = view_loop(view);
 done:
 	free(repo_path);