We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c839655 commit 522c8ceCopy full SHA for 522c8ce
book/07-git-tools/git-credential-read-only
@@ -22,7 +22,7 @@ end
22
23
File.readlines(path).each do |fileline| # <4>
24
prot,user,pass,host = fileline.scan(/^(.*?):\/\/(.*?):(.*?)@(.*)$/).first
25
- if prot == known['protocol'] and host == known['host'] then
+ if prot == known['protocol'] and host == known['host'] and user == known['username'] then
26
puts "protocol=#{prot}"
27
puts "host=#{host}"
28
puts "username=#{user}"
0 commit comments