login
Header Space

 
 

.git/info/attributes not cloned

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Wednesday, March 26, 2008 - 11:08 pm

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


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
.git/info/attributes not cloned, Toby Corkindale, (Wed Mar 26, 11:08 pm)
Re: .git/info/attributes not cloned, Jeff King, (Wed Mar 26, 11:33 pm)
Re: .git/info/attributes not cloned, Toby Corkindale, (Thu Mar 27, 12:23 am)
Re: .git/info/attributes not cloned, Jeff King, (Thu Mar 27, 12:29 am)
Re: .git/info/attributes not cloned, Toby Corkindale, (Thu Mar 27, 12:48 am)
Re: .git/info/attributes not cloned, Jeff King, (Thu Mar 27, 12:53 am)
Re: [BUG?] git-archive ignores remote .gitattributes (was: ...., Johannes Schindelin, (Fri Mar 28, 8:22 am)
Re: [BUG?] git-archive ignores remote .gitattributes, Toby Corkindale, (Thu Apr 10, 12:14 am)
Re: [BUG?] git-archive ignores remote .gitattributes, Junio C Hamano, (Sun Mar 30, 11:07 pm)
Re: [BUG?] git-archive ignores remote .gitattributes (was: ...., Johannes Schindelin, (Fri Mar 28, 9:22 am)
speck-geostationary