diff --git a/.hgignore b/.hgignore
index 3bd277f0a829a25c0dd521029696563b90c3b707_LmhnaWdub3Jl..044529cd8edf550355e5bc7e11b1d90fdf70e43b_LmhnaWdub3Jl 100644
--- a/.hgignore
+++ b/.hgignore
@@ -13,4 +13,5 @@
 Pipfile
 Pipfile.lock
 .python-version
-.idea/
\ No newline at end of file
+.idea/
+local.repos
diff --git a/lib/before-check.sh b/lib/before-check.sh
index 3bd277f0a829a25c0dd521029696563b90c3b707_bGliL2JlZm9yZS1jaGVjay5zaA==..044529cd8edf550355e5bc7e11b1d90fdf70e43b_bGliL2JlZm9yZS1jaGVjay5zaA== 100755
--- a/lib/before-check.sh
+++ b/lib/before-check.sh
@@ -36,7 +36,11 @@
     fi
 fi
 
-./script/setup-repos ./default.repos ./repos
+repofiles="./default.repos"
+if [ -e "./local.repos" ]; then
+    repofiles="./local.repos"
+fi
+./script/setup-repos $repofiles ./repos
 
 python ./create_skip_file.py