Skip to content

Commit

Permalink
fixup! sha1-file: create shared-cache directory if it doesn't exist
Browse files Browse the repository at this point in the history
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 <stolee@gmail.com>
  • Loading branch information
derrickstolee committed Jun 20, 2024
1 parent b34ae1f commit dba1713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gvfs-helper-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dba1713

Please sign in to comment.