Предупреждение "Я получаю": следующие пути столкнулись (например, пути с учетом регистра в файловой системе без учета регистра), и только один из одной и той же группы столкновения находится в рабочем дереве "ошибка при использовании git клон:
git clone -c core.symlinks=true ssh://root@11.22.33.44/etc c/Dev/GIT/mysite-etckeeper/
Cloning into 'c/Dev/GIT/mysite-etckeeper'...
remote: Counting objects: 1400, done.
remote: Compressing objects: 100% (1202/1202), done.
remote: Total 1400 (delta 195), reused 0 (delta 0)
Receiving objects: 100% (1400/1400), 3.71 MiB | 276.00 KiB/s, done.
Resolving deltas: 100% (195/195), done.
Checking out files: 100% (1154/1154), done.
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
'HOSTNAME'
'hostname'
/etc # ls -la HOSTNAME
lrwxrwxrwx 1 root root 8 Mar 29 2017 HOSTNAME -> hostname
/etc # ls -la hostname
-rw-r--r-- 1 root root 18 Dec 21 2016 hostname
Как я могу решить эту проблему? Эта проблема символической ссылки также вызывает другие проблемы.
ПРИМЕР: Вот пример репозитория для воспроизведения ошибки: https://github.com/klorinczi/test_dupe_filename
Выполните это:
$ git clone -c core.symlinks=true https://github.com/klorinczi/test_dupe_filename
Cloning into 'test_dupe_filename_example'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 9 (delta 0), reused 9 (delta 0), pack-reused 0
Unpacking objects: 100% (9/9), done.
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
'HOSTNAME'
'hostname'