From: Jon Seymour <hidden> Date: 2016-06-15 22:50:59
Jeff King reported a problem with git stash apply incorrectly
applying an invalid stash reference.
There is an existing test that should have caught this, but
the test itself was broken, resulting in a false positive.
Signed-off-by: Jon Seymour <redacted>
---
t/t3903-stash.sh | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
@@ -543,11 +543,11 @@ test_expect_success 'invalid ref of the form stash@{n}, n >= N' 'echobar6>file2&&gitaddfile2&&gitstash&&-test_must_failgitdropstash@{1}&&-test_must_failgitpopstash@{1}&&-test_must_failgitapplystash@{1}&&-test_must_failgitshowstash@{1}&&-test_must_failgitbranchtmpstash@{1}&&+test_must_failgitstashdropstash@{1}&&+test_must_failgitstashpopstash@{1}&&+test_must_failgitstashapplystash@{1}&&+test_must_failgitstashshowstash@{1}&&+test_must_failgitstashbranchtmpstash@{1}&&gitstashdrop'
@@ -543,11 +543,11 @@ test_expect_success 'invalid ref of the form stash@{n}, n >= N' 'echobar6>file2&&gitaddfile2&&gitstash&&-test_must_failgitdropstash@{1}&&-test_must_failgitpopstash@{1}&&-test_must_failgitapplystash@{1}&&-test_must_failgitshowstash@{1}&&-test_must_failgitbranchtmpstash@{1}&&+test_must_failgitstashdropstash@{1}&&+test_must_failgitstashpopstash@{1}&&+test_must_failgitstashapplystash@{1}&&+test_must_failgitstashshowstash@{1}&&+test_must_failgitstashbranchtmpstash@{1}&&gitstashdrop
Probably we should just squash your fix in with my first patch, and drop
my test. Your fixed version is a superset of what mine tests.
-Peff
From: Jon Seymour <hidden> Date: 2016-06-15 22:50:59
On Thu, Apr 7, 2011 at 4:27 AM, Jeff King [off-list ref] wrote:
On Wed, Apr 06, 2011 at 09:21:13AM +1000, Jon Seymour wrote:
git stash drop
Probably we should just squash your fix in with my first patch, and drop
my test. Your fixed version is a superset of what mine tests.
I was wondering if it might be better to break up the original test,
so that each sub-function has its own invalid ref test? If there is
agreement, I can do this on top of 9355fc which is the tip of the
branch containing these fixes that has been merged into pu.
jon.
From: Jeff King <hidden> Date: 2016-06-15 22:50:59
On Thu, Apr 07, 2011 at 08:47:07AM +1000, Jon Seymour wrote:
On Thu, Apr 7, 2011 at 4:27 AM, Jeff King [off-list ref] wrote:
quoted
On Wed, Apr 06, 2011 at 09:21:13AM +1000, Jon Seymour wrote:
git stash drop
quoted
Probably we should just squash your fix in with my first patch, and drop
my test. Your fixed version is a superset of what mine tests.
I was wondering if it might be better to break up the original test,
so that each sub-function has its own invalid ref test? If there is
agreement, I can do this on top of 9355fc which is the tip of the
branch containing these fixes that has been merged into pu.
I don't think it's that big a deal. You could do a more thorough test
for each, I guess (to make sure they not just failed but also show that
they didn't have any effects), but that would not be checking an actual
regression we have seen. IOW, I'm sure you have something more
productive to do with your time. :)
-Peff