Code

Merge branch 'sb/maint-1.6.2-opt-filename-fix'
[git.git] / t / t5550-http-fetch.sh
index b6e6ec96075d8e8485de466c4c5c6f325e7b0d62..05b1b62cb66956bca57e1fbacac534993637bdd9 100755 (executable)
@@ -42,5 +42,16 @@ test_expect_success 'fetch changes via http' '
        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