summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/vcs.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 0a59f43..21ea316 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -261,7 +261,9 @@ class VCS
log = IO.pread(logcmd)
last = log[idpat, 1]
if path
- log = IO.pread(logcmd + [path])
+ cmd = logcmd
+ cmd += [path] unless path == '.'
+ log = IO.pread(cmd)
changed = log[idpat, 1]
else
changed = last