]> git.ipfire.org Git - thirdparty/git.git/commit
git-p4: fix instantiation of CalledProcessError
authorJoel Holdsworth <jholdsworth@nvidia.com>
Thu, 6 Jan 2022 21:41:56 +0000 (21:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jan 2022 23:05:22 +0000 (15:05 -0800)
commit40e7cfdd46eb14e63ae4238e3a067d955de54a3d
treed9c009c4b3f2b817c63dbec804a95a6d39a2f07c
parente83ba647f7c61cf945690d6a0bd8c172a6498dc8
git-p4: fix instantiation of CalledProcessError

CalledProcessError is an exception class from the subprocess namespace.
When raising this exception, git-p4 would instantiate CalledProcessError
objects without properly referencing the subprocess namespace causing
the script to fail.

Resolves the issue by replacing CalledProcessError with
subprocess.CalledProcessError.

Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py