mingw: verify that paths are not mistaken for remote nicknames
[gitweb.git] / wt-status.c
index 03754849626d1bf117e3821fb7cdffcd594f694f..cdf9f5eed2dad046beb9794a2675a56aaffb1ae9 100644 (file)
@@ -1065,7 +1065,8 @@ static void show_am_in_progress(struct wt_status *s,
 static char *read_line_from_git_path(const char *filename)
 {
        struct strbuf buf = STRBUF_INIT;
-       FILE *fp = fopen(git_path("%s", filename), "r");
+       FILE *fp = fopen_or_warn(git_path("%s", filename), "r");
+
        if (!fp) {
                strbuf_release(&buf);
                return NULL;