Commit Diff


commit - c7f4312fa3469fb36fb0cc087ca64846744a5533
commit + 8c02d095937330301b9330951e3c67be5488620a
blob - 97264cf27d57e9cd53202e2485893ca73899d36b
blob + a4dec1670fad5f4dd1f0964b60b561ce21e7eedb
--- got/got.c
+++ got/got.c
@@ -497,7 +497,8 @@ cmd_update(int argc, char *argv[])
 	if (error != NULL)
 		goto done;
 
-	error = apply_unveil(got_repo_get_path(repo), worktree_path);
+	error = apply_unveil(got_repo_get_path(repo),
+	    got_worktree_get_root_path(worktree));
 	if (error)
 		goto done;