Skip to content

Commit bcf0230

Browse files
authored
Merge pull request pre-commit#2699 from pre-commit/local-no-git
the local repo no longer needs to be a git repo
2 parents 87ab767 + 37685a7 commit bcf0230

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pre_commit/store.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,6 @@ def make_local_strategy(directory: str) -> None:
204204
with open(target_file, 'w') as f:
205205
f.write(contents)
206206

207-
env = git.no_git_env()
208-
209-
# initialize the git repository so it looks more like cloned repos
210-
def _git_cmd(*args: str) -> None:
211-
cmd_output_b('git', *args, cwd=directory, env=env)
212-
213-
git.init_repo(directory, '<<unknown>>')
214-
_git_cmd('add', '.')
215-
git.commit(repo=directory)
216-
217207
return self._new_repo(
218208
'local', C.LOCAL_REPO_VERSION, deps, make_local_strategy,
219209
)

0 commit comments

Comments
 (0)