Open duxingzhe opened 3 months ago
cannot spawn git: Exec format error
is that the whole output? Or is it something like
error: cannot spawn git: Exec format error
or fatal: cannot spawn git: Exec format error
?
Yeah, that is all the quote.
error: cannot spawn git: Exec format error
Maybe set the environment variable GIT_TRACE=1
and try again? This will hopefully shed some light into what is going on.
After I set GIT_TRACE=1 in the terminal in Android Studio,and run the same command given by AS. It's work fine. Therefore, I need to further review.
I think this still a problem needed to be reviewed in the source code to ensure the behavior of git in newest version is not changed and work properly.
Maybe set the environment variable
GIT_TRACE=1
and try again? This will hopefully shed some light into what is going on.
Now, I confirmed this problem. If I don't set GIT_TRACE=1 in the terminal, git can't work properly, and can't push to remote. Please fix it. Thanks.
If I don't set GIT_TRACE=1 in the terminal, git can't work properly, and can't push to remote.
That makes little sense, as GIT_TRACE
is not expected to change how Git looks up and spawns programs.
Can you please re-run the command after downloading, extracting and starting Sysinternals' Process Monitor, and then analyze the logs to find out which process spawning failed and what path the intended executable has?
If I don't set GIT_TRACE=1 in the terminal, git can't work properly, and can't push to remote.
That makes little sense, as
GIT_TRACE
is not expected to change how Git looks up and spawns programs.Can you please re-run the command after downloading, extracting and starting Sysinternals' Process Monitor, and then analyze the logs to find out which process spawning failed and what path the intended executable has?
OK.
If I don't set GIT_TRACE=1 in the terminal, git can't work properly, and can't push to remote.
That makes little sense, as
GIT_TRACE
is not expected to change how Git looks up and spawns programs.Can you please re-run the command after downloading, extracting and starting Sysinternals' Process Monitor, and then analyze the logs to find out which process spawning failed and what path the intended executable has?
The file has been uploaded. It just include git. Please find out why.
Please find out why.
I asked you to analyze it yourself, first.
Sorry. I think you overestimate my ability. I can't analyze it.
The reproducing steps as follows:
I think there may be some changes in new version that makes git fail to push.
Setup
No
Details
powershell in IDEA
Enumerating objects: 5, done.
cannot spawn git: Exec format error
All Url