From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Haggerty Subject: [RFC 2/6] git-check-attr: Demonstrate problems with unnormalized paths Date: Thu, 28 Jul 2011 12:37:01 +0200 Message-ID: <1311849425-9057-3-git-send-email-mhagger@alum.mit.edu> References: <1311849425-9057-1-git-send-email-mhagger@alum.mit.edu> Cc: gitster@pobox.com, Michael Haggerty To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Jul 28 12:37:44 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QmNyJ-0007Q2-BR for gcvg-git-2@lo.gmane.org; Thu, 28 Jul 2011 12:37:43 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755320Ab1G1KhV (ORCPT ); Thu, 28 Jul 2011 06:37:21 -0400 Received: from mail.berlin.jpk.com ([212.222.128.130]:32848 "EHLO mail.berlin.jpk.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755079Ab1G1KhR (ORCPT ); Thu, 28 Jul 2011 06:37:17 -0400 Received: from michael.berlin.jpk.com ([192.168.100.152]) by mail.berlin.jpk.com with esmtp (Exim 4.50) id 1QmNvm-0001Zr-BP; Thu, 28 Jul 2011 12:35:06 +0200 X-Mailer: git-send-email 1.7.6.8.gd2879 In-Reply-To: <1311849425-9057-1-git-send-email-mhagger@alum.mit.edu> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Michael Haggerty --- t/t0003-attributes.sh | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index 4f2fbc0..43957ea 100755 --- a/t/t0003-attributes.sh +++ b/t/t0003-attributes.sh @@ -93,6 +93,15 @@ test_expect_success 'attribute test' ' ' +test_expect_failure 'unnormalized paths' ' + + attr_check ./f f && + attr_check ./a/g a/g && + attr_check a/./g a/g && + attr_check a/c/../b/g a/b/g + +' + test_expect_success 'core.attributesfile' ' attr_check global unspecified && git config core.attributesfile "$HOME/global-gitattributes" && -- 1.7.6.8.gd2879