commit 12de5570c0b5ad1f2fad41f5ad62db1dc6fcf486 from: Omar Polo via: Thomas Adam date: Sun May 01 11:50:34 2022 UTC don't pass relative paths to get_file_status commit - 8260acc858602e0ca6da2e1d24caf55831ee2360 commit + 12de5570c0b5ad1f2fad41f5ad62db1dc6fcf486 blob - 93bbd9e32f688c5cce6af6698e4027b2e7e4e875 blob + 71cf5fb20060f1c97b2f78b48c8389898bd11669 --- lib/worktree.c +++ lib/worktree.c @@ -8792,7 +8792,8 @@ patch_check_path(const char *p, char **path, unsigned ie = got_fileindex_entry_get(fileindex, *path, strlen(*path)); if (ie) { *staged_status = get_staged_status(ie); - err = get_file_status(status, &sb, ie, *path, -1, NULL, repo); + err = get_file_status(status, &sb, ie, ondisk_path, -1, NULL, + repo); if (err) goto done; } else {