Commit f535bcd44604b1994b9d4fe351236dc1a69758d8

Stefan Sperling 2020-09-30T16:38:17

fix 'bad path' error from 'got clone' by unveiling the repository path again Problem found by jrick

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index b8f662a..e2b4927 100644
--- a/got/got.c
+++ b/got/got.c
@@ -1472,7 +1472,7 @@ cmd_clone(int argc, char *argv[])
 			goto done;
 		}
 	}
-	error = apply_unveil(repo ? got_repo_get_path(repo) : NULL, 0, NULL);
+	error = apply_unveil(repo_path, 0, NULL);
 	if (error)
 		goto done;