From: Johannes Schindelin Date: Tue, 06 Oct 2015 13:58:42 GMT Subject: [PATCH v3 1/2] gc: demonstrate failure with stale remote HEAD Message-ID: In-Reply-To: Signed-off-by: Johannes Schindelin --- t/t6500-gc.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/t/t6500-gc.sh b/t/t6500-gc.sh index 63194d8..9a3a285 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 removes broken refs/remotes//HEAD' ' + git init remote && + ( + cd remote && + test_commit initial && + git clone . ../client && + git branch -m develop && + cd ../client && + git fetch --prune && + git gc + ) +' + test_done -- 2.6.1.windows.1