Re: "git clone" executed as root on solaris 10 shreds UFS (it is possible to create hardlinks for directories as root under solaris)
From: Thomas Glanzmann <hidden>
Date: 2016-06-15 22:43:21
Hello David,
Does it help to say export CDPATH="" in your root shell?
no. The problem is triggered by "git-checkout-index -a -f" so my CDPATH has
absolutly _nothing_ todo with it:
(faui04a) [/var/tmp] mkdir -p test-4/.git
(faui04a) [/var/tmp] cd test-4
(faui04a) [/var/tmp/test-4] gcp -a ~/work/repositories/public/easix.git/* .git/
(faui04a) [/var/tmp/test-4] git-read-tree HEAD
(faui04a) [/var/tmp/test-4] git-checkout-index -a -f
(faui04a) [/var/tmp/test-4] git status
fatal: /usr/bin/git-status cannot be used without a working tree.
(faui04a) [/var/tmp/test-4] rm .git/config
(faui04a) [/var/tmp/test-4] git status
# On branch master
# Changed but not updated:
# (use "git add/rm <file>..." to update what will be committed)
#
# deleted: profiles/icpc
# deleted: profiles/sithglan
# deleted: sources/boot.msg
# deleted: sources/busybox-config
# deleted: sources/config
# deleted: sources/easix.logo.16
# deleted: sources/easixdm
# deleted: sources/f2
# deleted: sources/home-faumachine.tar.gz
# deleted: sources/home-icpc.tar.gz
# deleted: sources/home-simigern.tar.gz
# deleted: sources/home-sithglan.tar.gz
# deleted: sources/home-sitowert.tar.gz
# deleted: sources/linuxrc
# deleted: sources/rc.local
#
no changes added to commit (use "git add" and/or "git commit -a")
(faui04a) [/var/tmp/test-4] cd ..
(faui04a) [/var/tmp] rm -rf test-4
rm: Unable to remove directory test-4: File exists
(faui04a) [/var/tmp]
Thomas