summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/layout_tests/rebaseline.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/tools/layout_tests/rebaseline.py b/webkit/tools/layout_tests/rebaseline.py
index 652c350..2261933 100644
--- a/webkit/tools/layout_tests/rebaseline.py
+++ b/webkit/tools/layout_tests/rebaseline.py
@@ -422,6 +422,11 @@ class Rebaseliner(object):
return False
parent_dir, basename = os.path.split(filename)
+ if parent_dir == filename:
+ logging.info("No svn checkout found. Assuming it's a git repo and not "
+ "adding")
+ return True
+
original_dir = os.getcwd()
os.chdir(parent_dir)
status_output = RunShell(['svn', 'status', basename], False)