summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2007-08-21 16:15:14 -0700
committerNathan Binkert <nate@binkert.org>2007-08-21 16:15:14 -0700
commit3555b2aecca85457d4ce5899ebafd2a7cde08e53 (patch)
tree34b6c5f00ad18d5d6998e16f32f30d97ae341efb /util
parent464a51e29e858d6dc38847120868b36e97c8bb6d (diff)
downloadgem5-3555b2aecca85457d4ce5899ebafd2a7cde08e53.tar.xz
style: fix style hook when run from a repo subdir.
Before this fix, the style hook would blow up when you did a qrefresh to add a new file, but executed the qrefresh from a repository sub directory. --HG-- extra : convert_revision : 851b0421dfa5c5b23d0f49441c4ba2e0ac579c5d
Diffstat (limited to 'util')
-rw-r--r--util/style.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/style.py b/util/style.py
index 866bef9b8..18b224f27 100644
--- a/util/style.py
+++ b/util/style.py
@@ -286,7 +286,7 @@ def check_whitespace(ui, repo, hooktype, node, parent1, parent2):
for fname in added:
ok = True
- for line,num in checkwhite(fname):
+ for line,num in checkwhite(repo.wjoin(fname)):
ui.write("invalid whitespace in %s:%d\n" % (fname, num))
if verbose:
ui.write(">>%s<<\n" % line[-1])