rewrite git_config() to use the config-set API
[gitweb.git] / t / t9350-fast-export.sh
index 3d475af173fffbc0b85f8cbc9950bcec58b9daa5..66c8b0a371e37f90cff8da0c92f09c8784ec45a2 100755 (executable)
@@ -511,4 +511,15 @@ test_expect_success 'use refspec' '
        test_cmp expected actual
 '
 
+test_expect_success 'delete refspec' '
+       git branch to-delete &&
+       git fast-export --refspec :refs/heads/to-delete to-delete ^to-delete > actual &&
+       cat > expected <<-EOF &&
+       reset refs/heads/to-delete
+       from 0000000000000000000000000000000000000000
+
+       EOF
+       test_cmp expected actual
+'
+
 test_done