git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git-filter-repo on Windows
@ 2020-09-22 16:03 Francis ANDRE
  2020-09-28 20:03 ` Johannes Schindelin
  0 siblings, 1 reply; 2+ messages in thread
From: Francis ANDRE @ 2020-09-22 16:03 UTC (permalink / raw)
  To: git

Hello Git people

Since I understood that the git-filter-repo is now recommanded by Git to 
replace git-filter-branch, I am trying to use it on Windows 10 under a 
DOS window. The installation and use of this git-filter-repo is really a 
nigthmare on DOS Win10. As there is a git-for-windows specific 
installation, could you make also an installation a little bit more 
Window oriented?


C:\Users\fandre\Documents\MXW\MI\release>git filter-repo --analyse
/usr/bin/env: 'python3': Permission denied

C:\Users\fandre\Documents\MXW\MI\release>git filter-repo --analyse
/usr/bin/env: 'python': Permission denied

C:\Users\fandre\Documents\MXW\MI\release>where python3
C:\Users\fandre\AppData\Local\Microsoft\WindowsApps\python3.exe


Same with a git-bash window:

FAE@FANDRE-LAPTOP MINGW64 ~/Documents/MXW/MI/release (release)
$ git filter-repo --analyse
/usr/bin/env: 'python': Permission denied

FAE@FANDRE-LAPTOP MINGW64 ~/Documents/MXW/MI/release (release)
$ ls -l /c/Users/fandre/AppData/Local/Microsoft/WindowsApps/python
-rwxr-xr-x 1 FAE 1049089 0 Sep 22 10:59 
/c/Users/fandre/AppData/Local/Microsoft/WindowsApps/python*

$ env | grep USER
USERDOMAIN=METRIXWARE
USERNAME=FAE
USERPROFILE=C:\Users\fandre
USERDOMAIN_ROAMINGPROFILE=METRIXWARE
FPS_BROWSER_USER_PROFILE_STRING=Default
USERDNSDOMAIN=METRIXWARE.LOCAL
ALLUSERSPROFILE=C:\ProgramData
UIPATH_USER_SERVICE_PATH=C:\Users\fandre\AppData\Local\UiPath\app-20.4.3\UiPath.Service.UserHost.exe

Regards


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git-filter-repo on Windows
  2020-09-22 16:03 git-filter-repo on Windows Francis ANDRE
@ 2020-09-28 20:03 ` Johannes Schindelin
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2020-09-28 20:03 UTC (permalink / raw)
  To: Francis ANDRE; +Cc: git

Hi,

On Tue, 22 Sep 2020, Francis ANDRE wrote:

> Hello Git people
>
> Since I understood that the git-filter-repo is now recommanded by Git to
> replace git-filter-branch, I am trying to use it on Windows 10 under a DOS
> window. The installation and use of this git-filter-repo is really a nigthmare
> on DOS Win10. As there is a git-for-windows specific installation, could you
> make also an installation a little bit more Window oriented?

I assume you opened https://github.com/git-for-windows/git/issues/2833
describing this issue?

For lurkers, I found that editing `git-filter-repo` to run `/usr/bin/env
python` instead of `/usr/bin/env python3` works for me. Details here:
https://github.com/git-for-windows/git/issues/2833#issuecomment-699916239

Ciao,
Johannes

>
>
> C:\Users\fandre\Documents\MXW\MI\release>git filter-repo --analyse
> /usr/bin/env: 'python3': Permission denied
>
> C:\Users\fandre\Documents\MXW\MI\release>git filter-repo --analyse
> /usr/bin/env: 'python': Permission denied
>
> C:\Users\fandre\Documents\MXW\MI\release>where python3
> C:\Users\fandre\AppData\Local\Microsoft\WindowsApps\python3.exe
>
>
> Same with a git-bash window:
>
> FAE@FANDRE-LAPTOP MINGW64 ~/Documents/MXW/MI/release (release)
> $ git filter-repo --analyse
> /usr/bin/env: 'python': Permission denied
>
> FAE@FANDRE-LAPTOP MINGW64 ~/Documents/MXW/MI/release (release)
> $ ls -l /c/Users/fandre/AppData/Local/Microsoft/WindowsApps/python
> -rwxr-xr-x 1 FAE 1049089 0 Sep 22 10:59
> /c/Users/fandre/AppData/Local/Microsoft/WindowsApps/python*
>
> $ env | grep USER
> USERDOMAIN=METRIXWARE
> USERNAME=FAE
> USERPROFILE=C:\Users\fandre
> USERDOMAIN_ROAMINGPROFILE=METRIXWARE
> FPS_BROWSER_USER_PROFILE_STRING=Default
> USERDNSDOMAIN=METRIXWARE.LOCAL
> ALLUSERSPROFILE=C:\ProgramData
> UIPATH_USER_SERVICE_PATH=C:\Users\fandre\AppData\Local\UiPath\app-20.4.3\UiPath.Service.UserHost.exe
>
> Regards
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-28 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-22 16:03 git-filter-repo on Windows Francis ANDRE
2020-09-28 20:03 ` Johannes Schindelin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).