{"thread":{"id":"54275","subject":"git-filter-repo on Windows","startedAt":"2020-09-22T16:00:13Z","lastAt":"2020-09-28T20:03:22Z","messageCount":2,"participants":["Francis ANDRE","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"406130","messageId":"8345312a-40aa-b582-50d7-714b8f518ecc@orange.fr","threadId":"54275","inReplyTo":null,"subject":"git-filter-repo on Windows","fromName":"Francis ANDRE","fromEmail":"francis.andre.kampbell@orange.fr","sentAt":"2020-09-22T16:03:03Z","receivedAt":"2020-09-22T16:00:13Z","isPatch":false,"sender":{"key":"francis.andre.kampbell@orange.fr","avatar":null},"body":"Hello Git people\n\nSince I understood that the git-filter-repo is now recommanded by Git to \nreplace git-filter-branch, I am trying to use it on Windows 10 under a \nDOS window. The installation and use of this git-filter-repo is really a \nnigthmare on DOS Win10. As there is a git-for-windows specific \ninstallation, could you make also an installation a little bit more \nWindow oriented?\n\n\nC:\\Users\\fandre\\Documents\\MXW\\MI\\release>git filter-repo --analyse\n/usr/bin/env: 'python3': Permission denied\n\nC:\\Users\\fandre\\Documents\\MXW\\MI\\release>git filter-repo --analyse\n/usr/bin/env: 'python': Permission denied\n\nC:\\Users\\fandre\\Documents\\MXW\\MI\\release>where python3\nC:\\Users\\fandre\\AppData\\Local\\Microsoft\\WindowsApps\\python3.exe\n\n\nSame with a git-bash window:\n\nFAE@FANDRE-LAPTOP MINGW64 ~/Documents/MXW/MI/release (release)\n$ git filter-repo --analyse\n/usr/bin/env: 'python': Permission denied\n\nFAE@FANDRE-LAPTOP MINGW64 ~/Documents/MXW/MI/release (release)\n$ ls -l /c/Users/fandre/AppData/Local/Microsoft/WindowsApps/python\n-rwxr-xr-x 1 FAE 1049089 0 Sep 22 10:59 \n/c/Users/fandre/AppData/Local/Microsoft/WindowsApps/python*\n\n$ env | grep USER\nUSERDOMAIN=METRIXWARE\nUSERNAME=FAE\nUSERPROFILE=C:\\Users\\fandre\nUSERDOMAIN_ROAMINGPROFILE=METRIXWARE\nFPS_BROWSER_USER_PROFILE_STRING=Default\nUSERDNSDOMAIN=METRIXWARE.LOCAL\nALLUSERSPROFILE=C:\\ProgramData\nUIPATH_USER_SERVICE_PATH=C:\\Users\\fandre\\AppData\\Local\\UiPath\\app-20.4.3\\UiPath.Service.UserHost.exe\n\nRegards\n\n"},{"id":"406566","messageId":"nycvar.QRO.7.76.6.2009282201380.50@tvgsbejvaqbjf.bet","threadId":"54275","inReplyTo":"8345312a-40aa-b582-50d7-714b8f518ecc@orange.fr","subject":"Re: git-filter-repo on Windows","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2020-09-28T20:03:14Z","receivedAt":"2020-09-28T20:03:22Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 22 Sep 2020, Francis ANDRE wrote:\n\n> Hello Git people\n>\n> Since I understood that the git-filter-repo is now recommanded by Git to\n> replace git-filter-branch, I am trying to use it on Windows 10 under a DOS\n> window. The installation and use of this git-filter-repo is really a nigthmare\n> on DOS Win10. As there is a git-for-windows specific installation, could you\n> make also an installation a little bit more Window oriented?\n\nI assume you opened https://github.com/git-for-windows/git/issues/2833\ndescribing this issue?\n\nFor lurkers, I found that editing `git-filter-repo` to run `/usr/bin/env\npython` instead of `/usr/bin/env python3` works for me. Details here:\nhttps://github.com/git-for-windows/git/issues/2833#issuecomment-699916239\n\nCiao,\nJohannes\n\n>\n>\n> C:\\Users\\fandre\\Documents\\MXW\\MI\\release>git filter-repo --analyse\n> /usr/bin/env: 'python3': Permission denied\n>\n> C:\\Users\\fandre\\Documents\\MXW\\MI\\release>git filter-repo --analyse\n> /usr/bin/env: 'python': Permission denied\n>\n> C:\\Users\\fandre\\Documents\\MXW\\MI\\release>where python3\n> C:\\Users\\fandre\\AppData\\Local\\Microsoft\\WindowsApps\\python3.exe\n>\n>\n> Same with a git-bash window:\n>\n> FAE@FANDRE-LAPTOP MINGW64 ~/Documents/MXW/MI/release (release)\n> $ git filter-repo --analyse\n> /usr/bin/env: 'python': Permission denied\n>\n> FAE@FANDRE-LAPTOP MINGW64 ~/Documents/MXW/MI/release (release)\n> $ ls -l /c/Users/fandre/AppData/Local/Microsoft/WindowsApps/python\n> -rwxr-xr-x 1 FAE 1049089 0 Sep 22 10:59\n> /c/Users/fandre/AppData/Local/Microsoft/WindowsApps/python*\n>\n> $ env | grep USER\n> USERDOMAIN=METRIXWARE\n> USERNAME=FAE\n> USERPROFILE=C:\\Users\\fandre\n> USERDOMAIN_ROAMINGPROFILE=METRIXWARE\n> FPS_BROWSER_USER_PROFILE_STRING=Default\n> USERDNSDOMAIN=METRIXWARE.LOCAL\n> ALLUSERSPROFILE=C:\\ProgramData\n> UIPATH_USER_SERVICE_PATH=C:\\Users\\fandre\\AppData\\Local\\UiPath\\app-20.4.3\\UiPath.Service.UserHost.exe\n>\n> Regards\n>\n>\n"}]}