t5520: factor out common "failing autostash" code
commit44a59fff4598f3d2f68b5bc83c75e8483637a33d
authorMehul Jain <mehul.jain2029@gmail.com>
Sat, 2 Apr 2016 17:58:30 +0000 (2 23:28 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Apr 2016 18:14:58 +0000 (4 11:14 -0700)
treefe6dca74099886797017d0f4d52eab4e43371cf2
parent5c82bcddf4f436f137bf0608321c92b8328a270a
t5520: factor out common "failing autostash" code

Three tests contains repetitive lines of code.

Factor out common code into test_pull_autostash_fail() and then call it in
these tests.

Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Mehul Jain <mehul.jain2029@gmail.com>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5520-pull.sh