git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* .gitattributes lookup doesn't respect GIT_WORK_TREE
@ 2018-04-15 19:04 Andreas Schwab
  2018-04-15 21:05 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2018-04-15 19:04 UTC (permalink / raw)
  To: git

The functions in attr.c do not look at $GIT_WORK_TREE when trying to
find the .gitattributes file.  Thus if you are not inside the work tree,
but have GIT_WORK_TREE set attribute lookup will be wrong.

Password Store <http://www.passwordstore.org/> is using this feature
when the password store is a git repository.  It sets up a diff
attribute that decrypts the contents, but that works only if the command
is issued while inside the repository.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

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

end of thread, other threads:[~2018-04-16 15:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-15 19:04 .gitattributes lookup doesn't respect GIT_WORK_TREE Andreas Schwab
2018-04-15 21:05 ` Junio C Hamano
2018-04-15 22:40   ` Andreas Schwab
2018-04-16 15:37     ` Duy Nguyen

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).