mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
the local repo no longer needs to be a git repo
This commit is contained in:
parent
87ab767175
commit
37685a7f42
1 changed files with 0 additions and 10 deletions
|
|
@ -204,16 +204,6 @@ class Store:
|
||||||
with open(target_file, 'w') as f:
|
with open(target_file, 'w') as f:
|
||||||
f.write(contents)
|
f.write(contents)
|
||||||
|
|
||||||
env = git.no_git_env()
|
|
||||||
|
|
||||||
# initialize the git repository so it looks more like cloned repos
|
|
||||||
def _git_cmd(*args: str) -> None:
|
|
||||||
cmd_output_b('git', *args, cwd=directory, env=env)
|
|
||||||
|
|
||||||
git.init_repo(directory, '<<unknown>>')
|
|
||||||
_git_cmd('add', '.')
|
|
||||||
git.commit(repo=directory)
|
|
||||||
|
|
||||||
return self._new_repo(
|
return self._new_repo(
|
||||||
'local', C.LOCAL_REPO_VERSION, deps, make_local_strategy,
|
'local', C.LOCAL_REPO_VERSION, deps, make_local_strategy,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue