Commit 1ab2f577bc070dd7d59cdce6d35b268f3a77fd0d

lhchavez 2020-12-11T05:13:16

Fix an oops

1
2
3
4
5
6
7
8
9
10
11
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;
 }