-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fatal: mmap: could not determine filesize #2451
Comments
And I am afraid that the provided information is insufficient to allow others to help. You could at least try to replicate the problem with an open source repository. And if that does not reproduce the problem, you could try to use But in the current form, this ticket is too scarce on details to help. If this is all the information we will ever see publicly, I will be forced to close this ticket eventually, without any resolution. |
Thanks Johannes. I found it! I tried your suggestion, but after anonymizing, the problem no longer occurred. I continued searching. After much more investigation, I eventually stumbled on it. I discovered that the repo (which comes from Linux server) has filename This leads me to ask: is it possible for git-for-windows to detect these Windows reserved filenames and display a more descriptive error message? |
I think that is precisely what #2440 is about. This PR made it into the latest snapshot and also the latest -rc version. Would you please test whether it still happens with such a bad error message when using https://github.com/git-for-windows/git/releases/tag/v2.25.0-rc1.windows.1 (you can test with the Portable Git if you do not want to overwrite your current Git for Windows installation)? |
Amazing! It is indeed the same issue. I am now testing with v2.25. Starting with a tree containing
|
Unfortunately, this would not exactly be easy in the current code base :-(
Wow, that's bad! What it should do is to simply stop after |
From my results below, the patch in v2.25 needs a little more work. Let me know if there is something else you would like me to try. v2.25 Cloned but Checkout FailedUsing v2.25, I cloned a tree that contains the
Working tree is empty
How do I populate the working tree?I tried moving the offending file, but it fails too.
Downgrade to v2.24 for the checkoutWith v2.24 installed, the initial checkout succeeded, with errors for the
Switching to other branches succeeds, without the error message above.
At this point, I have a useable working tree. |
This is actually as intended. You don't want the clone to fail because the user would not have a way to fix things otherwise (a failed clone removes the worktree altogether).
This fails because there is no such file. You can always call |
So I guess this can be closed now. |
Setup
64-bit.
defaults?
to the issue you're seeing?
This error only occurs with the "git status" command and only for one of my repositories. It is a 6.1GB (not a typo) repo.
NOTE: cygwin's git v2.17.0 successfully returns "git status" results. E.g.
Details
I have run git from Bash, CMD, PowerShell, Git bash, and from within VSCode. All behave the same way.
Minimal, Complete, and Verifiable example
this will help us understand the issue.
The output from "git status".
The following error is displayed:
fatal: mmap: could not determine filesize
URL to that repository to help us with testing?
I'm afraid it's company confidential.
The text was updated successfully, but these errors were encountered: