.git/info/attributes not cloned
- From
- Toby Corkindale <toby.corkindale@rea-group.com>
- Date
- Mar 27, 2008, 03:08 UTC
- Message-ID
- <47EB0FAE.5000102@rea-group.com>
Hi. If one creates a .git/info/attributes file in a Git repo, it will not be present in cloned repos. I don't know if this is a bug or not, but it /seems/ wrong behaviour to me, and reading from the manual pages.
This shell script demonstrates the issue:
#!/bin/bash
mkdir testgit
cd testgit
mkdir original
cd original
git init --shared
echo -e "# gitattributes(5) file\n*.pm ident" > .git/info/attributes
echo "# \$Ident\$" > example.pm
git add example.pm
git commit -m "initial commit"
cd ..
git clone --bare original copy
if [ -e copy/info/attributes ]; then
echo "Good, attributes file exists."
else
echo "Bad! attributes file does not exist in copy."
fi