Code

Merge branch 'sp/refspec-match'
[git.git] / t / t5510-fetch.sh
index 20257428eb0a98f639e7d373f1d00ad91d7c16ad..46a9c4d95cf889990f2e6387a9838a55642bbe64 100755 (executable)
@@ -240,4 +240,17 @@ test_expect_success 'quoting of a strangely named repo' '
        grep "fatal: '\''a\\\\!'\''b'\''" result
 '
 
+test_expect_success 'bundle should record HEAD correctly' '
+
+       cd "$D" &&
+       git bundle create bundle5 HEAD master &&
+       git bundle list-heads bundle5 >actual &&
+       for h in HEAD refs/heads/master
+       do
+               echo "$(git rev-parse --verify $h) $h"
+       done >expect &&
+       diff -u expect actual
+
+'
+
 test_done