diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2014-04-20 13:59:28 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-04-21 11:47:34 -0700 |
commit | 60ed26438c909fd273528e67b399ee6ca4028e1e (patch) | |
tree | ae393edaa6f26f96c0409e5e74b5b5658ffdd8cf /t/t9350-fast-export.sh | |
parent | 4ee1b225b99f155cc9372397b5e120c2c0eee2bf (diff) | |
download | git-60ed26438c909fd273528e67b399ee6ca4028e1e.tar.gz |
fast-export: add support to delete refs
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9350-fast-export.sh')
-rwxr-xr-x | t/t9350-fast-export.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t9350-fast-export.sh b/t/t9350-fast-export.sh index 3d475af173..66c8b0a371 100755 --- a/t/t9350-fast-export.sh +++ b/t/t9350-fast-export.sh @@ -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 |