From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johan Herland Subject: [PATCH 1/2] t3310: Add testcase demonstrating failure to --commit from within another dir Date: Mon, 12 Mar 2012 15:57:12 +0100 Message-ID: <1331564233-1969-1-git-send-email-johan@herland.net> References: <87boo3m50x.fsf@zancas.localnet> Cc: Johan Herland , gitster@pobox.com, david@tethera.net, pclouds@gmail.com To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Mon Mar 12 15:57:35 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S76gm-0002nH-LW for gcvg-git-2@plane.gmane.org; Mon, 12 Mar 2012 15:57:32 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755679Ab2CLO52 (ORCPT ); Mon, 12 Mar 2012 10:57:28 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:51162 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755140Ab2CLO51 (ORCPT ); Mon, 12 Mar 2012 10:57:27 -0400 Received: by wibhj6 with SMTP id hj6so3844463wib.1 for ; Mon, 12 Mar 2012 07:57:26 -0700 (PDT) Received: by 10.180.95.34 with SMTP id dh2mr28013238wib.15.1331564246037; Mon, 12 Mar 2012 07:57:26 -0700 (PDT) Received: from gamma.cisco.com (64-103-25-233.cisco.com. [64.103.25.233]) by mx.google.com with ESMTPS id k6sm34514885wiy.7.2012.03.12.07.57.21 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Mar 2012 07:57:22 -0700 (PDT) X-Mailer: git-send-email 1.7.9.2 In-Reply-To: <87boo3m50x.fsf@zancas.localnet> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Found-by: David Bremner Signed-off-by: Johan Herland --- (sending again in the correct thread. Sorry for the screwup.) This is a transcription of David's test script into a git test case. Thanks to David for finding this issue. Have fun! :) ...Johan t/t3310-notes-merge-manual-resolve.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/t/t3310-notes-merge-manual-resolve.sh b/t/t3310-notes-merge-manual-resolve.sh index 4367197..0c531c3 100755 --- a/t/t3310-notes-merge-manual-resolve.sh +++ b/t/t3310-notes-merge-manual-resolve.sh @@ -553,4 +553,23 @@ test_expect_success 'resolve situation by aborting the notes merge' ' verify_notes z ' +cat >expect_notes < $(git rev-parse HEAD) && + echo "bar" >> $(git rev-parse HEAD) && + git notes merge --commit + ) && + git notes show HEAD > actual_notes && + test_cmp expect_notes actual_notes +' + test_done -- 1.7.9.2