Gusto / it-cpe-opensource

Tools used by the CPE team at Gusto to manage our endpoints and software deployment systems.
Other
59 stars 29 forks source link

Fix git runs in autopkg_tools #23

Closed williamtheaker closed 4 years ago

williamtheaker commented 4 years ago

If you look at result you can confirm stdout is the output of running git with no args:

CompletedProcess(args=['git', 'rev-parse', '--abbrev-ref', 'HEAD'], stdout=b"usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]\n           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n           [-p | --paginate | -P | --no-pager] [--no-replace- stderr=b'')

This patch instead passes args as a string.