Skip to content

Commit dba1713

Browse files
committed
fixup! sha1-file: create shared-cache directory if it doesn't exist
Resolves microsoft#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 <[email protected]>
1 parent b34ae1f commit dba1713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gvfs-helper-client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ static void gh_client__choose_odb(void)
324324
return;
325325

326326
for (odb = the_repository->objects->odb->next; odb; odb = odb->next) {
327-
if (!strcmp(odb->path, gvfs_shared_cache_pathname.buf)) {
327+
if (!fspathcmp(odb->path, gvfs_shared_cache_pathname.buf)) {
328328
gh_client__chosen_odb = odb;
329329
return;
330330
}

0 commit comments

Comments
 (0)