File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
contrib/filter-repo-demos Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ near the top of git-filter-repo.
18
18
import argparse
19
19
import os
20
20
import subprocess
21
+ import sys
21
22
try :
22
23
import git_filter_repo as fr
23
24
except ImportError :
@@ -65,7 +66,14 @@ class CheckIgnores:
65
66
commit .file_changes = [x for x in commit .file_changes
66
67
if x .filename not in bad ]
67
68
68
- checker = CheckIgnores ()
69
- args = fr .FilteringOptions .default_options ()
70
- filter = fr .RepoFilter (args , commit_callback = checker .skip_ignores )
71
- filter .run ()
69
+
70
+ def main ():
71
+ checker = CheckIgnores ()
72
+ args = fr .FilteringOptions .default_options ()
73
+ filter = fr .RepoFilter (args , commit_callback = checker .skip_ignores )
74
+ filter .run ()
75
+
76
+
77
+ if __name__ == '__main__' :
78
+ main ()
79
+
You can’t perform that action at this time.
0 commit comments