diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2014-04-20 13:59:24 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-04-21 11:47:33 -0700 |
commit | 03e9010c66adfe5e1693eae039e6754d925b7bf4 (patch) | |
tree | 97d66d0654b6863a18f13d3f09e19a9dd9cedcb5 /t | |
parent | fast-export: improve argument parsing (diff) | |
download | tgif-03e9010c66adfe5e1693eae039e6754d925b7bf4.tar.xz |
fast-export: add new --refspec option
So that we can convert the exported ref names.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t9350-fast-export.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t9350-fast-export.sh b/t/t9350-fast-export.sh index 2312dec8f0..3d475af173 100755 --- a/t/t9350-fast-export.sh +++ b/t/t9350-fast-export.sh @@ -504,4 +504,11 @@ test_expect_success 'refs are updated even if no commits need to be exported' ' test_cmp expected actual ' +test_expect_success 'use refspec' ' + git fast-export --refspec refs/heads/master:refs/heads/foobar master | \ + grep "^commit " | sort | uniq > actual && + echo "commit refs/heads/foobar" > expected && + test_cmp expected actual +' + test_done |