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

PortableGit fails silently (return code 128) #1482

Closed
pjturpeau opened this issue Feb 6, 2018 · 3 comments
Closed

PortableGit fails silently (return code 128) #1482

pjturpeau opened this issue Feb 6, 2018 · 3 comments

Comments

@pjturpeau
Copy link

pjturpeau commented Feb 6, 2018

Similar to an old ticket : #390

Setup

$ git --version --build-options
git version 2.16.1.windows.2
cpu: x86_64
built from commit: e78e3c8ee9c219723d60aa1bccd8348c2269b9ba
sizeof-long: 4
D:\Users\T0010711>cmd /ver
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

It's on my work laptop, and due to restricted installation credentials, I'm only allowed to put and launch portable executable from a dedicated subdirectory (which has spaces...) under "My Documents".

http_proxy and https_proxy environment variables setup to the right proxy:port configuration.

I did launch post-install.bat

Details

From git-bash.exe

$ GIT_TRACE=1 git clone https://github.com/pjturpeau/demo-snippets.git
23:54:57.842401 git.c:344               trace: built-in: git 'clone' 'https://github.com/pjturpeau/demo-snippets.git'
Cloning into 'demo-snippets'...
23:54:57.904801 run-command.c:627       trace: run_command: 'remote-https' 'origin' 'https://github.com/pjturpeau/demo-snippets.git'
23:54:57.998400 git.c:576               trace: exec: 'git-remote-https' 'origin' 'https://github.com/pjturpeau/demo-snippets.git'
23:54:57.998400 run-command.c:627       trace: run_command: 'git-remote-https' 'origin' 'https://github.com/pjturpeau/demo-snippets.git'

$ echo $?
128

I can reach the URL using curl (still from git-bash.exe):

$ curl -I https://github.com/pjturpeau/demo-snippets.git
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   178    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0HTTP/1.1 200 Connection established

HTTP/1.1 301 Moved Permanently
Server: GitHub.com
Date: Tue, 06 Feb 2018 22:56:53 GMT
Content-Type: text/html.
Content-Length: 178
Location: https://github.com/pjturpeau/demo-snippets
Vary: Accept-Encoding
X-GitHub-Request-Id: D390:6034:324A5D:547910:5A7A32B4
X-Frame-Options: DENY

I tried to install the http://gitforwindows.org/#download-sdk but the enterprise proxy keeps reject some requests (403 forbidden). I may request for exceptions to complete the operation but I don't know how to 'trace' details in the install process of git-sdk-installer-1.0.6-64.7z.exe

Any idea about where to search next is welcome.

@pjturpeau pjturpeau changed the title PortableGit fails silently PortableGit fails silently (return code 128) Feb 6, 2018
@dscho
Copy link
Member

dscho commented Feb 7, 2018

git version 2.16.1.windows.2

Please try v2.16.1(3) (released yesterday), which has a fix precisely for this, also reported as #1478.

@dscho dscho closed this as completed Feb 7, 2018
@dscho
Copy link
Member

dscho commented Feb 7, 2018

I tried to install the http://gitforwindows.org/#download-sdk but the enterprise proxy keeps reject some requests (403 forbidden).

BTW this issue is also known: #1479. Please have a look at that ticket for the suggested workarounds for now.

@dscho dscho added the duplicate label Feb 7, 2018
@pjturpeau
Copy link
Author

As suggested by Johannes, the new version PortableGit-2.16.1.3-64-bit.7z.exe fixed the problem.
Thank you for the responsiveness.

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

No branches or pull requests

2 participants