Description
Setup
- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options
git version 2.10.0.windows.1
sizeof-long: 4
machine: x86_64
The same happens in git-for-cygwin.
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver
Version 10.0.14393
- What options did you set as part of the installation? Or did you choose the
defaults?
I used the defaults but "CRLFCommitAsIs"
- Any other interesting things about your environment that might be related
to the issue you're seeing?
No.
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
GitForWindows Bash and also using git from cygwin, from its mintty bash terminals.
- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
I took a fossil (fossil-scm.org) vcs export in "git fast-import" format, and then I gave it to a just initialised git repository with "git fast-import".
- What did you expect to occur after running these commands?
The resulting git repository should have the same commits as if "git fast-import" was run on linux, but in some commits we have lost files. The files were properly referred in the fast-import format. Using "git fast-import" in linux, from the same source, results in all files in all commits correct.
- What actually happened instead?
There were commits in the "fast-import" source where a file "ply.h" was removed and a "Ply.h" was added. In the linux "git fast-import" it was well handled, but in GitForWindows or GitForCygwin the commit resulted without "ply.h" or "Ply.h", so the new Ply.h file was missing. And it was also missing from all later commits, of course. Git was completely silent about this lost file. The very same happend with another file that had the same trouble: lowercase removed, added with some uppercase, in the same commit.
So, my workaround was to run "git fast-import" on linux, but I guess it is worth fixing, because "git fast-import" in windows gives the false feeling of properly importing the repository.
- If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
It happened with a non-public repository. I cannot provide it.