summaryrefslogtreecommitdiff
path: root/t/t9350-fast-export.sh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2014-04-20 13:59:24 -0500
committerJunio C Hamano <gitster@pobox.com>2014-04-21 11:47:33 -0700
commit03e9010c66adfe5e1693eae039e6754d925b7bf4 (patch)
tree97d66d0654b6863a18f13d3f09e19a9dd9cedcb5 /t/t9350-fast-export.sh
parent8b2f86a76146ebbd4ac4f9c2182b3f7bda4492ff (diff)
downloadgit-03e9010c66adfe5e1693eae039e6754d925b7bf4.tar.gz
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/t9350-fast-export.sh')
-rwxr-xr-xt/t9350-fast-export.sh7
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