git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-filter-repo For Windows (possibly a request for a bash for Windows primer)

From
KRKerry, Richard <richard.kerry@atos.net>
Date
Apr 20, 2020, 14:03 UTC
Message-ID
<AM0PR02MB371559B3C5445A3C9D39821B9CD40@AM0PR02MB3715.eurprd02.prod.outlook.com>

This follows my earlier query for which the answer was "use git-filter-repo". I've cloned git-filter-repo from GitHub, and I've installed the latest Python (version 3.8). I'm working on Windows.  Windows 10 if it makes any difference, so git is Git For Windows. The first instruction for git-filter-repo is to copy it into the "--exec-path" of git.  That fails, saying Access is Denied.  So leaving aside the option to change the permissions I've followed the second half of the sentence and added my git-filter-repo location to my Path (or PATH if it's in bash).  Now running "get filter-repo" gives: /usr/bin/env: 'python3.exe': No such file or directory

My python executable is called python3.exe.  There is a note in the git-filter-repo project about certain Windows installations where it isn't called python3, but that now raises in my mind the question of whether I need to tweak git-filter-repo to look for "python3.exe" rather than just "python3".  Or can I take it that the Windows version of bash understands that it needs to add ".exe" automatically?
Assuming that is handled automatically, what do I now need to do to satisfy the error message?  Do I need to put something in bash-for-Windows' /usr/bin/env directory?  Or is there something else entirely that I should be doing?
And is it OK to ask about this on this list, or should I be going to a git-filter-branch resource?  Or for Git For Windows?

Regards, Richard.

Richard Kerry
BNCS Engineer, SI SOL Telco & Media Vertical Practice
M: +44 (0)7812 325518
2nd Floor, MidCity Place, 71 High Holborn, London, WC1V 6EA
https://webmail.siemens-it-solutions.com/owa/redir.aspx?C=9fb20d019e3e4cb99344d708709a3177&URL=mailto%3arichard.kerry%40atos.net
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
Next: Elijah Newren
Message 1 of 6 in “git-filter-repo For Windows (possibly a request for a bash for Windows primer)”
  1. Kerry, RichardApr 20, 2020
  2. Elijah NewrenApr 20, 2020
  3. Elijah NewrenApr 20, 2020
  4. Philip OakleyApr 20, 2020
  5. Kerry, RichardApr 21, 2020
  6. Johannes SchindelinApr 25, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.