From: Johannes Schindelin Date: Mon, 28 Sep 2015 14:01:13 +0000 (+0200) Subject: gc: demonstrate failure with stale remote HEAD X-Git-Tag: v2.6.3~31^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8c845cde99dcfc9821f1182623248dee9ebb4227?ds=inline;hp=--cc gc: demonstrate failure with stale remote HEAD Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- 8c845cde99dcfc9821f1182623248dee9ebb4227 diff --git a/t/t6500-gc.sh b/t/t6500-gc.sh index 63194d819e..ed22dcc76f 100755 --- a/t/t6500-gc.sh +++ b/t/t6500-gc.sh @@ -30,4 +30,17 @@ test_expect_success 'gc -h with invalid configuration' ' test_i18ngrep "[Uu]sage" broken/usage ' +test_expect_failure 'gc is not aborted due to a stale symref' ' + git init remote && + ( + cd remote && + test_commit initial && + git clone . ../client && + git branch -m develop && + cd ../client && + git fetch --prune && + git gc + ) +' + test_done