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
…660)

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.

---

* [X] This change only applies to interactions with Azure DevOps and the
      GVFS Protocol.
  • Loading branch information
dscho authored Jun 21, 2024
2 parents b34ae1f + dba1713 commit 6c14732
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 6c14732

Please sign in to comment.