Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Windows #16

Open
gschizas opened this issue Sep 7, 2018 · 0 comments
Open

Support for Windows #16

gschizas opened this issue Sep 7, 2018 · 0 comments

Comments

@gschizas
Copy link

gschizas commented Sep 7, 2018

Out of the box, this script/custom command doesn't work in Windows (because an extensionless script can't be executable, I guess). I managed to fix this by these steps:

  1. Make a cmd batch file
  2. Create an alias

The batch file is very simple:

@echo off
py "%~dp0git-rewrite-author" %*

I saved it as C:\Program Files\Python37\Scripts\git-rewrite-author.cmd

The command for the alias was git config --global alias.rewrite-author "!C:/Program\ Files/Python37/Scripts/git-rewrite-author.cmd"

Once I figure out how to do these steps properly, inside setup.py, I'll do a pull request, but if someone has found this and wants it to work in Windows, these are the simple steps to follow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant