summaryrefslogtreecommitdiff
path: root/src/libgit2/repository.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgit2/repository.c')
-rw-r--r--src/libgit2/repository.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/repository.c b/src/libgit2/repository.c
index 1e356c84e..99982b724 100644
--- a/src/libgit2/repository.c
+++ b/src/libgit2/repository.c
@@ -1099,7 +1099,7 @@ int git_repository_open_ext(
if (error < 0)
goto cleanup;
- if (git_shallow__enabled && (error = load_grafts(repo)) < 0)
+ if ((error = load_grafts(repo)) < 0)
goto cleanup;
if ((flags & GIT_REPOSITORY_OPEN_BARE) != 0) {