ejoffe / spr

Stacked Pull Requests on GitHub
MIT License
714 stars 65 forks source link

[Consulting] Install on windows #390

Open ej612 opened 4 months ago

ej612 commented 4 months ago

Hi there,

There's no documentation for how to install on windows, so I did my best, but I can't seem to get it to work. I'm not sure if I'm doing it wrong or if there's a bug that breaks the tool if paths contain a space.

Steps

The command fails with the following error message:

$git spr update
> git rev-parse --show-toplevel
> git fetch
> git rebase origin/master --autostash
> github fetch pull requests
> git log --format=medium --no-color origin/master..HEAD
> git rebase origin/master -i --autosquash --autostash
git error: Created autostash: fc473cb3
C:\Program Files\Git\mingw64\libexec\git-core\spr_reword_helper.exe: line 1: C:Program: command not found
error: There was a problem with the editor 'C:\Program Files\Git\mingw64\libexec\git-core\spr_reword_helper.exe'.
Applied autostash.
> git log --format=medium --no-color origin/master..HEAD
panic: unable to fetch local commits
 most likely this is an issue with missing commit-id in the commit body

The first error message C:Program: command not found made me open this ticket, as it might be a bug. The second message about missing commit ids came as a surprise, as there's no mention of having to set this up in the docs.

Any help is appreciated. Thanks in advance!