mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix relative path repos
This commit is contained in:
parent
b920f3cc6b
commit
960bcc9614
1 changed files with 3 additions and 0 deletions
|
|
@ -154,6 +154,9 @@ class Store(object):
|
|||
def clone(self, repo, ref, deps=()):
|
||||
"""Clone the given url and checkout the specific ref."""
|
||||
|
||||
if os.path.isdir(repo):
|
||||
repo = os.path.abspath(repo)
|
||||
|
||||
def clone_strategy(directory):
|
||||
env = git.no_git_env()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue