diff --git a/dvc/scm.py b/dvc/scm.py index 5230d00a0..e49039721 100644 --- a/dvc/scm.py +++ b/dvc/scm.py @@ -18,6 +18,10 @@ class Base(object): self.project = project self.root_dir = root_dir + @property + def dir(self): + return None + @staticmethod def is_repo(root_dir): return True diff --git a/tests/test_repro.py b/tests/test_repro.py index 70db0abdc..112386088 100644 --- a/tests/test_repro.py +++ b/tests/test_repro.py @@ -763,3 +763,9 @@ class TestReproShell(TestDvc): with open(fname, 'r') as fd: self.assertEqual(os.getenv('SHELL'), fd.read().strip()) + +class TestReproNoSCM(TestRepro): + def test(self): + shutil.rmtree(self.dvc.scm.dir) + ret = main(['repro', self.file1_stage]) + self.assertEqual(ret, 0)