diff --git a/t/t5550-http-fetch.sh b/t/t5550-http-fetch.sh
index b6e6ec96075d8e8485de466c4c5c6f325e7b0d62..05b1b62cb66956bca57e1fbacac534993637bdd9 100755 (executable)
--- a/t/t5550-http-fetch.sh
+++ b/t/t5550-http-fetch.sh
test_cmp file clone/file
'
+test_expect_success 'http remote detects correct HEAD' '
+ git push public master:other &&
+ (cd clone &&
+ git remote set-head origin -d &&
+ git remote set-head origin -a &&
+ git symbolic-ref refs/remotes/origin/HEAD > output &&
+ echo refs/remotes/origin/master > expect &&
+ test_cmp expect output
+ )
+'
+
stop_httpd
test_done