therubymug / hitch

Git author attribution helper for pair programmers.
http://github.com/therubymug/hitch
MIT License
249 stars 31 forks source link

Input used twice when Hitch adds a new person #11

Closed s4y closed 12 years ago

s4y commented 12 years ago

Hey, When I use Hitch with a new person, my session ends up looking like this:

$ hitch foo bar
I don't know who foo is.
Do you want to add foo to ~/.hitch_pairs?
y
y
What is foo's full name?
Your answer isn't valid (must match /\A[\w.,-]+(?: [\w.,-]+)*\z/).
?  

It looks like my input each time is getting used twice: once for the current prompt, and once for the following prompt (note “Your answer isn't valid’). (If I type “yes” in response to “Do you want to add foo…’, a new person named “es” gets added.)

therubymug commented 12 years ago

Version 0.7.1 fixed this! :-) Thanks!

s4y commented 12 years ago

@therubymug awesome!!