summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sha1_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sha1_file.c b/sha1_file.c
index a913865df8..d65ca43245 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -456,6 +456,7 @@ static void read_info_alternates(const char * relative_base, int depth)
path = xstrfmt("%s/info/alternates", relative_base);
if (strbuf_read_file(&buf, path, 1024) < 0) {
+ warn_on_fopen_errors(path);
free(path);
return;
}