diff --git a/erp5/util/testnode/Updater.py b/erp5/util/testnode/Updater.py
index 81211dfd20254054fe381947e31a3fbf87d79a8a..efc9593c5a41595e9a9d136809b940c8f9c73bd6 100644
--- a/erp5/util/testnode/Updater.py
+++ b/erp5/util/testnode/Updater.py
@@ -131,7 +131,7 @@ class Updater(object):
         else:
           h = revision[1]
         if h != self._git('rev-parse', 'HEAD'):
-          self.deletePycFiles('.')
+          self.deletePycFiles(self.repository_path)
           # For performance reasons, 'reset --merge' only looks at mtime & ctime
           # to check is the index is correct and conflicts immediately if
           # contents or metadata changed. Even hardlinking a file changes its
@@ -140,7 +140,7 @@ class Updater(object):
           self._git('update-index', '--refresh')
           self._git('reset', '--merge', h)
       else:
-        self.deletePycFiles('.')
+        self.deletePycFiles(self.repository_path)
         if os.path.exists('.git/svn'):
           self._git('svn', 'rebase')
         else: