From: Johan Herland Date: Mon, 12 Mar 2012 14:47:26 GMT Subject: [PATCH 1/2] t3310: Add testcase demonstrating failure to --commit from within another dir Message-ID: <1331563647-1909-1-git-send-email-johan@herland.net> In-Reply-To: <1319438176-7304-3-git-send-email-pclouds@gmail.com> Found-by: David Bremner Signed-off-by: Johan Herland --- 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