Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
wt-status.c:quote_path(): convert empty path to "./"
[gitweb.git]
/
wt-status.c
diff --git
a/wt-status.c
b/wt-status.c
index 02dbb751db86b1c10a018cfb234f267e22d73894..05414bb9e9dd064f65ff21ae2c6c53f996a6bd21 100644
(file)
--- a/
wt-status.c
+++ b/
wt-status.c
@@
-121,6
+121,9
@@
static char *quote_path(const char *in, int len,
}
}
+ if (!out->len)
+ strbuf_addstr(out, "./");
+
return out->buf;
}