Closed williamtheaker closed 4 years ago
If you look at result you can confirm stdout is the output of running git with no args:
result
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.
If you look at
result
you can confirm stdout is the output of running git with no args:This patch instead passes args as a string.