Fix an oops
diff --git a/src/repository.c b/src/repository.c
index 3a54f8c..948413d 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -3066,5 +3066,5 @@ int git_repository_submodule_cache_clear(git_repository *repo)
error = git_submodule_cache_free(repo->submodule_cache);
repo->submodule_cache = NULL;
- return 0;
+ return error;
}