Teach check-large-files-added about git-lfs. Reslves #82.

This commit is contained in:
Anthony Sottile
2015-12-25 09:25:14 -08:00
parent 2c62e4aafc
commit 3f6f23d73f
6 changed files with 109 additions and 2 deletions

View File

@ -21,7 +21,9 @@ def cmd_output(*cmd, **kwargs):
popen_kwargs.update(kwargs)
proc = subprocess.Popen(cmd, **popen_kwargs)
stdout, stderr = proc.communicate()
stdout, stderr = stdout.decode('UTF-8'), stderr.decode('UTF-8')
stdout = stdout.decode('UTF-8')
if stderr is not None:
stderr = stderr.decode('UTF-8')
if retcode is not None and proc.returncode != retcode:
raise CalledProcessError(cmd, retcode, proc.returncode, stdout, stderr)
return stdout