Skip to content

Commit e71f6a5

Browse files
luked99gitster
authored andcommitted
git p4: add test for tag import/export enabled via config
This adds a test for git p4 to check it can import/export tags when enabled via a config variable rather than on the command line. Signed-off-by: Luke Diamand <luke@diamand.org> Acked-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 00855b6 commit e71f6a5

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

t/t9811-git-p4-label-import.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,26 @@ test_expect_success 'tag that cannot be exported' '
195195
)
196196
'
197197

198+
test_expect_success 'use git config to enable import/export of tags' '
199+
git p4 clone --verbose --dest="$git" //depot@all &&
200+
(
201+
cd "$git" &&
202+
git config git-p4.exportLabels true &&
203+
git config git-p4.importLabels true &&
204+
git tag CFG_A_GIT_TAG &&
205+
git p4 rebase --verbose &&
206+
git p4 submit --verbose &&
207+
git tag &&
208+
git tag | grep TAG_F1_1
209+
) &&
210+
(
211+
cd "$cli" &&
212+
p4 labels &&
213+
p4 labels | grep CFG_A_GIT_TAG
214+
)
215+
'
216+
217+
198218
test_expect_success 'kill p4d' '
199219
kill_p4d
200220
'

0 commit comments

Comments
 (0)