1

I am doing a clone of a git repository and I am finding changed files. I have looked at some of the other posts with similar issues, but as of yet the steps don't seem to help. I have tried adjusting the autocrlf settings, the case settings and some of the other configurations, but I am still seeing modified files, when I do 'git status'.

The configurations from the core section of the .git/config is:

repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = false
precomposeunicode = true
autocrlf = false

A truncated sample of paths that are being shown as modified are:

modified:   applications/test/Dictionary/Make/files
modified:   applications/test/Dictionary/Make/options
modified:   applications/test/Dictionary/Test-Dictionary.C
modified:   src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolation.H
modified:   src/OpenFOAM/interpolations/primitivePatchInterpolation/PrimitivePatchInterpolation.H
modified:   src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrix.C
modified:   src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrix.H
modified:   src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixATmul.C
modified:   src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixOperations.C

A truncated sample of paths that are being shown as untracked are:

applications/test/Dictionary/Test-dictionary.C
applications/test/Dictionary/testDict
applications/test/Dictionary/testDict2
applications/test/Dictionary/testDictInc
applications/test/Dictionary/testDictRegex
applications/test/Dictionary/value
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrix.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrix.H
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixATmul.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixOperations.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixPreconditioner.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixSmoother.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixSolver.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixTemplates.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixUpdateMatrixInterfaces.C

I did the following after each config change:

rm -rf *
git reset --hard 
git status

The Git repository is git://github.com/OpenFOAM/OpenFOAM-2.3.x.git and the current operating system is MacOS X 10.9.5. Git version is 1.9.3. File system is HFS+ (case-insensitive).

4

2 回答 2

1

事实证明,存储库中的文件在同一目录中以大写和小写形式存在。例如“字典”和“字典”。MacOS X 端的解决方案是创建一个区分大小写的 HFS+ 磁盘映像,挂载它,然后在挂载路径中签出存储库。

使用的命令:

hdiutil create -size 1g -fs "Case-sensitive Journaled HFS+" -volname "OpenFOAM Development" openfoam-development.dmg

避免导致问题的问题可能会更好,但我只需要接受这个限制。

于 2015-02-03T19:32:04.840 回答
0

当你做一个差异时,你看到任何实际的变化吗?我之前在克隆具有 UNIX 行结尾并且我在 Windows 上的存储库时看到过这种情况,因此它会自动将它们转换为 Windows。

于 2015-01-30T19:34:32.490 回答