summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-09 23:52:43 +0800
committerruki <[email protected]>2022-03-09 23:52:43 +0800
commit24e2894d746a42b88bd7fda3bbaab88521a6a616 (patch)
treee76e6e2838a9799593af53a17315bcd7033099e0
parentb839cf85148abac9cb0bff5af013bb6ac7203824 (diff)
add comments
-rw-r--r--xmake/core/base/os.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 03c51006b..cb6821d3d 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -364,7 +364,7 @@ function os.match(pattern, mode, callback)
if startpos then
rootdir = rootdir:sub(1, startpos - 1)
end
- rootdir = path.directory(rootdir .. "_")
+ rootdir = path.directory(rootdir .. "_") -- patch '_' to avoid getting incorrect directory for `/foo/*`
-- compute the recursion level
--