summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xruntests.py4
-rw-r--r--tools/linter.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/runtests.py b/runtests.py
index 68a52115b..5885d2df6 100755
--- a/runtests.py
+++ b/runtests.py
@@ -31,7 +31,7 @@ Generate C code coverage listing under build/lcov/:
Run lint checks.
Provide target branch name or `uncommitted` to check before committing:
- $ python runtests.py --lint master
+ $ python runtests.py --lint main
$ python runtests.py --lint uncommitted
"""
@@ -664,7 +664,7 @@ def check_lint(lint_args):
sys.exit(1)
uncommitted = lint_args == "uncommitted"
- branch = "master" if uncommitted else lint_args
+ branch = "main" if uncommitted else lint_args
DiffLinter(branch).run_lint(uncommitted)
diff --git a/tools/linter.py b/tools/linter.py
index f51a8848b..2952e91ed 100644
--- a/tools/linter.py
+++ b/tools/linter.py
@@ -62,7 +62,7 @@ class DiffLinter:
if __name__ == '__main__':
parser = ArgumentParser()
- parser.add_argument("--branch", type=str, default='master',
+ parser.add_argument("--branch", type=str, default='main',
help="The branch to diff against")
parser.add_argument("--uncommitted", action='store_true',
help="Check only uncommitted changes")