Without universal_newlines=True or text=True, subprocess.check_output returns bytes, not str, so it makes no sense to compare its return to "true". But upstream Git’s behavior only depends on the filename, not whether the repository is bare; emulate this more closely.
Without
universal_newlines=True
ortext=True
,subprocess.check_output
returnsbytes
, notstr
, so it makes no sense to compare its return to"true"
. But upstream Git’s behavior only depends on the filename, not whether the repository is bare; emulate this more closely.