wt-status.c:quote_path(): convert empty path to "./"
[gitweb.git] / wt-status.c
index 02dbb751db86b1c10a018cfb234f267e22d73894..05414bb9e9dd064f65ff21ae2c6c53f996a6bd21 100644 (file)
@@ -121,6 +121,9 @@ static char *quote_path(const char *in, int len,
                }
        }
 
+       if (!out->len)
+               strbuf_addstr(out, "./");
+
        return out->buf;
 }