Hello,
I am trying to use pre-commit [https://pre-commit.com/]
in a project of mine. git fails with an error about missing
certificate.
You can find an example run at https://framagit.org/snippets/2183
And you will find attached to this mail the pre-commit.log
Help greatly appreciated!
--
Amirouche ~ amz3 ~ http://www.hyperdev.fr
An unexpected error has occurred: CalledProcessError: Command:
('/home/amirouche/.guix-profile/libexec/git-core/git', 'clone',
'--no-checkout', 'https://github.com/ambv/black.git',
'/home/amirouche/.cache/pre-commit/repo8iqyopmi')
Return code: 128
Expected return code: 0
Output: (none)
Errors:
Cloning into '/home/amirouche/.cache/pre-commit/repo8iqyopmi'...
fatal: unable to access 'https://github.com/ambv/black.git/': server
certificate verification failed. CAfile: none CRLfile: none
Traceback (most recent call last):
File
"/home/amirouche/.local/share/virtualenvs/socialite-J8sGaPJp/lib/python3.6/site-packages/pre_commit/error_handler.py",
line 47, in error_handler
yield
File
"/home/amirouche/.local/share/virtualenvs/socialite-J8sGaPJp/lib/python3.6/site-packages/pre_commit/main.py",
line 261, in main
return run(runner, store, args)
File
"/home/amirouche/.local/share/virtualenvs/socialite-J8sGaPJp/lib/python3.6/site-packages/pre_commit/commands/run.py",
line 256, in run
for _, hook in repo.hooks:
File
"/home/amirouche/.local/share/virtualenvs/socialite-J8sGaPJp/lib/python3.6/site-packages/cached_property.py",
line 35, in __get__
value = obj.__dict__[self.func.__name__] = self.func(obj)
File
"/home/amirouche/.local/share/virtualenvs/socialite-J8sGaPJp/lib/python3.6/site-packages/pre_commit/repository.py",
line 162, in hooks
if hook['id'] not in self.manifest_hooks:
File
"/home/amirouche/.local/share/virtualenvs/socialite-J8sGaPJp/lib/python3.6/site-packages/cached_property.py",
line 35, in __get__
value = obj.__dict__[self.func.__name__] = self.func(obj)
File
"/home/amirouche/.local/share/virtualenvs/socialite-J8sGaPJp/lib/python3.6/site-packages/pre_commit/repository.py",
line 155, in manifest_hooks
repo_path = self.store.clone(repo, rev)
File
"/home/amirouche/.local/share/virtualenvs/socialite-J8sGaPJp/lib/python3.6/site-packages/pre_commit/store.py",
line 150, in clone
return self._new_repo(repo, ref, deps, clone_strategy)
File
"/home/amirouche/.local/share/virtualenvs/socialite-J8sGaPJp/lib/python3.6/site-packages/pre_commit/store.py",
line 126, in _new_repo
make_strategy(directory)
File
"/home/amirouche/.local/share/virtualenvs/socialite-J8sGaPJp/lib/python3.6/site-packages/pre_commit/store.py",
line 142, in clone_strategy
cmd_output(*cmd, env=env)
File
"/home/amirouche/.local/share/virtualenvs/socialite-J8sGaPJp/lib/python3.6/site-packages/pre_commit/util.py",
line 177, in cmd_output
returncode, cmd, retcode, output=(stdout, stderr),
pre_commit.util.CalledProcessError: Command:
('/home/amirouche/.guix-profile/libexec/git-core/git', 'clone',
'--no-checkout', 'https://github.com/ambv/black.git',
'/home/amirouche/.cache/pre-commit/repo8iqyopmi')
Return code: 128
Expected return code: 0
Output: (none)
Errors:
Cloning into '/home/amirouche/.cache/pre-commit/repo8iqyopmi'...
fatal: unable to access 'https://github.com/ambv/black.git/': server
certificate verification failed. CAfile: none CRLfile: none