author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Wed, 9 Apr 2008 21:14:43 +0000 (23:14 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 10 Apr 2008 07:20:38 +0000 (00:20 -0700) | ||
commit | ac7fa2776c4a839a5a96c13886714774b52844de | |
tree | 9d07d1203f5cd3c2bfbd5d2c22f894f36fd805ac | tree | snapshot |
parent | 3f36cbbaaf87b67abafa851e2808735553f92b06 | commit | diff |
git-archive: ignore prefix when checking file attribute
Ulrik Sverdrup noticed that git-archive doesn't correctly apply the attribute
export-subst when the option --prefix is given, too.
When it checked if a file has the attribute turned on, git-archive would try
to look up the full path -- including the prefix -- in .gitattributes. That's
wrong, as the prefix doesn't need to have any relation to any existing
directories, tracked or not.
This patch makes git-archive ignore the prefix when looking up if value of the
attribute export-subst for a file.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ulrik Sverdrup noticed that git-archive doesn't correctly apply the attribute
export-subst when the option --prefix is given, too.
When it checked if a file has the attribute turned on, git-archive would try
to look up the full path -- including the prefix -- in .gitattributes. That's
wrong, as the prefix doesn't need to have any relation to any existing
directories, tracked or not.
This patch makes git-archive ignore the prefix when looking up if value of the
attribute export-subst for a file.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-tar.c | diff | blob | history | |
archive-zip.c | diff | blob | history | |
t/t5000-tar-tree.sh | diff | blob | history |