git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Using clean/smudge scripts from repository
@ 2015-06-10  1:53 Bob Bell
  2015-06-10 15:22 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Bob Bell @ 2015-06-10  1:53 UTC (permalink / raw)
  To: git

I'm setting up a clean/smudge filter for a repository.  In local testing 
it seemed to work well.  To allow for the clean/smudge scripts to be 
updated as the source changes, I put the clean/smudge scripts into the 
repository, and configured the filter in my ~/.gitconfig file to be 
simply "./filter --clean" and "./filter --smudge".

However, when cloning a fresh repository instance, that's breaking 
because a file with the filter set by .gitattributes is getting created 
BEFORE the filter script itself exists.

Playing around with things, I realized that alphabetically the filter 
script came after the filename being filtered.  So I renamed the filter 
to __filter, and that appears to have changed to order in which contents 
are created during "git clone".

Is this a proper solution, or did I just "luck out"?  Am I perhaps doing 
something foolish?

Thanks,
Bob

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-10 20:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-10  1:53 Using clean/smudge scripts from repository Bob Bell
2015-06-10 15:22 ` Junio C Hamano
2015-06-10 20:55   ` Bob Bell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).