commit - f1165c794c498a63e9167441e7294d79d558500e
commit + 238050ce7b9ba6527d21b357cea92a51d94d39cc
blob - ad7b886219f18cc55190a65296d733c9de7a8214
blob + 99ed42546e8da33259e8178264dda6113761b31d
--- got/got.c
+++ got/got.c
goto done;
}
} else {
- repo_path = strdup(cwd);
- if (repo_path == NULL) {
- error = got_error_from_errno("strdup");
- goto done;
- }
- }
- }
-
- if (worktree) {
- repo_path = strdup(got_worktree_get_repo_path(worktree));
- if (repo_path == NULL) {
- error = got_error_from_errno("strdup");
- goto done;
- }
- } else {
- if (repo_path == NULL) {
repo_path = strdup(cwd);
if (repo_path == NULL) {
error = got_error_from_errno("strdup");