From dba1713f020826a648c00233b34c06e124c53f8d Mon Sep 17 00:00:00 2001 From: Derrick Stolee Date: Thu, 20 Jun 2024 11:41:00 -0400 Subject: [PATCH] fixup! sha1-file: create shared-cache directory if it doesn't exist Resolves #645. When on Windows, these paths may differ only by case in the config but also correspond to the same paths on disk. Use fspathcmp() instead. Signed-off-by: Derrick Stolee --- gvfs-helper-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gvfs-helper-client.c b/gvfs-helper-client.c index c44def7d912e8e..88217d81f7a6c3 100644 --- a/gvfs-helper-client.c +++ b/gvfs-helper-client.c @@ -324,7 +324,7 @@ static void gh_client__choose_odb(void) return; for (odb = the_repository->objects->odb->next; odb; odb = odb->next) { - if (!strcmp(odb->path, gvfs_shared_cache_pathname.buf)) { + if (!fspathcmp(odb->path, gvfs_shared_cache_pathname.buf)) { gh_client__chosen_odb = odb; return; }