ryan-williams/git-helpers

"remove? [Y/n]" won't accept Y or y

danvk opened this issue · 4 comments

danvk commented
$ git add-mirror-remote demeter vanded03@hammerlab-dev3.hpc.mssm.edu:guacamole
Found existing remote: demeter; remove? [Y/n]: Y
Traceback (most recent call last):
  File "/Users/danvk/github/git-helpers/remote/git-add-mirror-remote", line 35, in <module>
    if not maybe_remove_remote_if_exists(remote_name):
  File "/Users/danvk/github/git-helpers/util/remotes.py", line 86, in maybe_remove_remote_if_exists
    if prompt('Found existing remote: %s; remove? [Y/n]: ' % remote_name):
  File "/Users/danvk/github/git-helpers/util/remotes.py", line 72, in prompt
    inp = input(p)
  File "<string>", line 1, in <module>
NameError: name 'Y' is not defined

looks like a py3 eval incompatibility

danvk commented

I think you want raw_input, not input

danvk commented

I'll include a fix

that's what I meant, thanks @danvk !