aboutsummaryrefslogtreecommitdiff
path: root/t/t6500-gc.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2015-09-28 16:01:13 +0200
committerJunio C Hamano <gitster@pobox.com>2015-10-05 14:56:57 -0700
commit8c845cde99dcfc9821f1182623248dee9ebb4227 (patch)
tree770bcd1314f3c030d5ce6561c4299fb460d22e5c /t/t6500-gc.sh
parent74b67638166ca2e66497ede559dbf393e7af8b40 (diff)
downloadgit-8c845cde99dcfc9821f1182623248dee9ebb4227.tar.gz
git-8c845cde99dcfc9821f1182623248dee9ebb4227.tar.xz
gc: demonstrate failure with stale remote HEAD
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6500-gc.sh')
-rwxr-xr-xt/t6500-gc.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t6500-gc.sh b/t/t6500-gc.sh
index 63194d819..ed22dcc76 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