Commit Diff


commit - 41a37a441444194d85c82d2046e402b55b159286
commit + a05fb46091635af3b96b8f49a21517bbbb38fa84
blob - bfebb46526cc0f3f0deda90d0868edad7c6946c9
blob + bbe95ae655a519c5a9d4dc6eac25f7ace38c7452
--- lib/worktree.c
+++ lib/worktree.c
@@ -8795,7 +8795,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 {