"git clone" on FAT
The trouble with "git clone
" on FAT in ALT (on branch 5.1, also on Sisyphus) is like this:
~ $ mount /mnt/usbmem1 ~ $ mount | fgrep /mnt/usbmem1 /dev/sdb1 on /mnt/usbmem1 type vfat (rw,noexec,nosuid,nodev,noatime,flush,utf8,shortname=winnt,fmask=117,quiet,user=imz) ~ $ mkdir /mnt/usbmem1/test ~ $ cd /mnt/usbmem1/test /mnt/usbmem1/test $ git clone ~/.emacs.d/site-start.d/ Cloning into site-start.d... fatal: cannot symlink '/usr/share/git-core/hooks/applypatch-msg' '/mnt/usbmem1/test/site-start.d/.git/hooks/applypatch-msg.sample': Operation not permitted /mnt/usbmem1/test $ rpm -q git-core git-core-1.7.3.4-alt0.M51.1 /mnt/usbmem1/test $
It's due to:
* Fri Sep 03 2010 Dmitry V. Levin <ldv@altlinux.org> 1.7.2.3-alt1 - Updated to maint v1.7.2.3. - Relocated hooks to /usr/share/git-core/hooks/, converted template hooks to symlinks.
The workaround:
/mnt/usbmem1/test $ GIT_TEMPLATE_DIR= git clone ~/.emacs.d/site-start.d/ Cloning into site-start.d... done. /mnt/usbmem1/test $
(GIT_TEMPLATE_DIR
is documented in "man git-init
".)
Well, I don't perceive this as a bug, but of course, it's an inconvenience--to remember about the template dir parameter...