diff --git a/gramps/plugins/tool/mediamanager.py b/gramps/plugins/tool/mediamanager.py index 4a57c18d2..dd9d5c5b9 100644 --- a/gramps/plugins/tool/mediamanager.py +++ b/gramps/plugins/tool/mediamanager.py @@ -671,8 +671,8 @@ class ImagesNotIncluded(BatchOp): self.set_total(len(self.dir_list)) for directory in self.dir_list: for (dirpath, dirnames, filenames) in os.walk(directory): - if ".svn" in dirnames: - dirnames.remove('.svn') # don't visit .svn directories + if ".git" in dirnames: + dirnames.remove('.git') # don't visit .git directories for filename in filenames: media_full_path = os.path.join(dirpath, filename) if media_full_path not in self.path_list: diff --git a/gramps/test/regrtest.py b/gramps/test/regrtest.py index 3334a315c..8f9a510ab 100755 --- a/gramps/test/regrtest.py +++ b/gramps/test/regrtest.py @@ -53,7 +53,7 @@ def make_parser(): def getTestSuites(loc=gramps_root): - # in a developer's checkout, it is worth filtering-out .svn + # in a developer's checkout, it is worth filtering-out .git # and we only need to look inside test subdirs # (this might change) # this is not so performance critical that we can't afford @@ -65,9 +65,9 @@ def getTestSuites(loc=gramps_root): test_dirname = "test" test_suffix = "_test.py" def test_mod(p,ds): - """ test for path p=test dir; removes a dir '.svn' in ds """ - if ".svn" in ds: - ds.remove(".svn") + """ test for path p=test dir; removes a dir '.git' in ds """ + if ".git" in ds: + ds.remove(".git") return os.path.basename(p) == test_dirname def match_mod(fs): """ test for any test modules; deletes all non-tests """