clean: replace match_pathspec() with dir_path_match()
[gitweb.git] / t / t5510-fetch.sh
index 12674ac0980fdafd60037bdff8009bb02a6da14a..ab28594c62dd7cddc69d3afdb075b48c34091c45 100755 (executable)
@@ -640,4 +640,15 @@ test_expect_success 'branchname D/F conflict resolved by --prune' '
        test_cmp expect actual
 '
 
+test_expect_success 'fetching a one-level ref works' '
+       test_commit extra &&
+       git reset --hard HEAD^ &&
+       git update-ref refs/foo extra &&
+       git init one-level &&
+       (
+               cd one-level &&
+               git fetch .. HEAD refs/foo
+       )
+'
+
 test_done