There was an error while loading. Please reload this page.
1 parent 927f471 commit 31ccc19Copy full SHA for 31ccc19
2 files changed
pre_commit/constants.py
@@ -17,6 +17,8 @@
17
18
# Bump when installation changes in a backwards / forwards incompatible way
19
INSTALLED_STATE_VERSION = '1'
20
+# Bump when modifying `empty_template`
21
+LOCAL_REPO_VERSION = '1'
22
23
VERSION = pkg_resources.get_distribution('pre-commit').version
24
VERSION_PARSED = pkg_resources.parse_version(VERSION)
pre_commit/store.py
@@ -9,6 +9,7 @@
9
10
from cached_property import cached_property
11
12
+import pre_commit.constants as C
13
from pre_commit.prefixed_command_runner import PrefixedCommandRunner
14
from pre_commit.util import clean_path_on_failure
15
from pre_commit.util import cmd_output
@@ -129,7 +130,7 @@ def make_local(self, deps):
129
130
def make_local_strategy(directory):
131
copy_tree_to_path(resource_filename('empty_template'), directory)
132
return self._new_repo(
- 'local:{}'.format(','.join(sorted(deps))), 'N/A',
133
+ 'local:{}'.format(','.join(sorted(deps))), C.LOCAL_REPO_VERSION,
134
make_local_strategy,
135
)
136
0 commit comments