summaryrefslogtreecommitdiff
path: root/src/submodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/submodule.c')
-rw-r--r--src/submodule.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/submodule.c b/src/submodule.c
index 95d3d0d9c..5ddbfe828 100644
--- a/src/submodule.c
+++ b/src/submodule.c
@@ -1693,8 +1693,6 @@ static int submodule_cache_refresh(git_submodule_cache *cache, int refresh)
update_gitmod = (wd != NULL) ?
git_futils_filestamp_check(&cache->gitmodules_stamp, path.ptr) :
(cache->gitmodules_stamp.mtime != 0);
- if (update_gitmod < 0)
- giterr_clear();
}
/* clear submodule flags that are to be refreshed */