You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pull command suppress download errors occurred during it's work and exits with zero code #2236
Similar to #731 when git lfs can't download some of my files during it work, for example storage host died, pull command will return zero code rather than return an error code:
> git-lfs pull
Git LFS: (0 of 25063 files) 0 B / 621.71 MB
batch request: ssh_exchange_identification: Connection closed by remote host: exit status 255
...
batch request: ssh_exchange_identification: Connection closed by remote host: exit status 255
>echo$?
0
In the same time fetch command catch this case:
> git lfs fetch
Fetching branch
Git LFS: (0 of 25063 files) 0 B / 621.71 MB
batch request: exit status 255
...
batch request: exit status 255
Warning: errors occurred
>echo$?
2
I would think it makes sense that git lfs pull should return non-zero in this case. If not, how can I detect that errors occurred and fix them/try again?
changed the title [-]Suppress pull errors occurred during it work and exits with zero code[/-][+]Pull command suppress download errors occurred during it's work and exits with zero code[/+]on May 19, 2017
Maybe somebody can help with writing a test covering my case, now I do not know how to simulate a connection break in the test? Locally reproduced by redirecting traffic to a dummy host.
👋 @seth2810, thanks for opening this up! I see that you started work on this in #2237, so I'm going to redirect discussion about this PR to there, if you don't mind.
Activity
[-]Suppress pull errors occurred during it work and exits with zero code[/-][+]Pull command suppress download errors occurred during it's work and exits with zero code[/+]seth2810 commentedon May 19, 2017
Maybe somebody can help with writing a test covering my case, now I do not know how to simulate a connection break in the test? Locally reproduced by redirecting traffic to a dummy host.
ttaylorr commentedon May 19, 2017
👋 @seth2810, thanks for opening this up! I see that you started work on this in #2237, so I'm going to redirect discussion about this PR to there, if you don't mind.