defunkt/gist.el — pull request #21 by Jaskirat (2012-01-27 15:11:59+00:00)
Title: Bug when executable path contains spaces.

On windows, executable find returns something like "c:/Program Files (x86)/Git/bin/git.exe" which when passed to shell-command-to-string causes an issue because the full path contains spaces. Wrapping this in quotes fixes the issue.

Example in cmd prompt:

C:\Users\jaskirat>c:\Program Files (x86)\Git\bin\git.exe
'c:\Program' is not recognized as an internal or external command,
operable program or batch file.

Therefore when i eval github-auth-info i get ("'c:\Program' is not recognized as an internal or external command,operable program or batch file." . "'c:\Program' is not recognized as an internal or external command,
operable program or batch file.")

After wrapping the command it quotes it works fine.