From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: bug in t3700-add.sh? Date: Fri, 03 Aug 2007 14:26:09 -0700 Message-ID: <7vabt8mhse.fsf@assigned-by-dhcp.cox.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Git Mailing List" , "Johannes Sixt" To: "Nguyen Thai Ngoc Duy" X-From: git-owner@vger.kernel.org Fri Aug 03 23:26:16 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1IH4f1-00043P-Ex for gcvg-git@gmane.org; Fri, 03 Aug 2007 23:26:15 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761420AbXHCV0M (ORCPT ); Fri, 3 Aug 2007 17:26:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761595AbXHCV0L (ORCPT ); Fri, 3 Aug 2007 17:26:11 -0400 Received: from fed1rmmtao105.cox.net ([68.230.241.41]:55423 "EHLO fed1rmmtao105.cox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988AbXHCV0K (ORCPT ); Fri, 3 Aug 2007 17:26:10 -0400 Received: from fed1rmimpo01.cox.net ([70.169.32.71]) by fed1rmmtao105.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20070803212610.ZZUL26965.fed1rmmtao105.cox.net@fed1rmimpo01.cox.net>; Fri, 3 Aug 2007 17:26:10 -0400 Received: from assigned-by-dhcp.cox.net ([68.5.247.80]) by fed1rmimpo01.cox.net with bizsmtp id XZS91X00B1kojtg0000000; Fri, 03 Aug 2007 17:26:09 -0400 In-Reply-To: (Nguyen Thai Ngoc Duy's message of "Fri, 3 Aug 2007 16:51:37 -0400") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: "Nguyen Thai Ngoc Duy" writes: > Running test 17, I got this output: Gaah. Those $s seem completely bogus. diff --git a/t/t3700-add.sh b/t/t3700-add.sh index b52fde8..a27c593 100755 --- a/t/t3700-add.sh +++ b/t/t3700-add.sh @@ -131,8 +131,8 @@ test_expect_success 'git add with filemode=0, symlinks=0 prefers stage 2 over st ( echo "100644 $(git hash-object -w stage1) 1 file" echo "100755 $(git hash-object -w stage2) 2 file" - echo "100644 $(printf $s | git hash-object -w -t blob --stdin) 1 symlink" - echo "120000 $(printf $s | git hash-object -w -t blob --stdin) 2 symlink" + echo "100644 $(echo 1 | git hash-object -w -t blob --stdin) 1 symlink" + echo "120000 $(echo 2 | git hash-object -w -t blob --stdin) 2 symlink" ) | git update-index --index-info && git config core.filemode 0 && git config core.symlinks 0 &&