utils/github/api: fix encoding errors when reading from keychain
This commit is contained in:
parent
1b0fdae219
commit
a0a3333ee4
@ -177,8 +177,9 @@ module GitHub
|
||||
print_stderr: false
|
||||
return unless result.success?
|
||||
|
||||
github_username = git_credential_out[/username=(.+)/, 1]
|
||||
github_password = git_credential_out[/password=(.+)/, 1]
|
||||
git_credential_out.force_encoding("ASCII-8BIT")
|
||||
github_username = git_credential_out[/^username=(.+)/, 1]
|
||||
github_password = git_credential_out[/^password=(.+)/, 1]
|
||||
return unless github_username
|
||||
|
||||
# Don't use passwords from the keychain unless they look like
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user