summaryrefslogtreecommitdiff
path: root/file/git-hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'file/git-hist.c')
-rw-r--r--file/git-hist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file/git-hist.c b/file/git-hist.c
index 0359673..24d0252 100644
--- a/file/git-hist.c
+++ b/file/git-hist.c
@@ -210,7 +210,7 @@ bool vcs_git_try(const char *path)
* exists, but then it would complain about the file not existing,
* which would be at best confusing.
*/
- if (git_repository_open_ext(&repo, path,
+ if (git_repository_open_ext_caching(&repo, path,
GIT_REPOSITORY_OPEN_CROSS_FS, NULL))
return 0;
if (git_repository_is_empty(repo))
@@ -267,7 +267,7 @@ struct vcs_history *vcs_git_history(const char *path, unsigned depth)
git_init_once();
- if (git_repository_open_ext(&history->repo, path,
+ if (git_repository_open_ext_caching(&history->repo, path,
GIT_REPOSITORY_OPEN_CROSS_FS, NULL))
pfatal_git(path);