summaryrefslogtreecommitdiff
path: root/t/t9806-git-p4-options.sh
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2011-12-25 02:07:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-12-27 18:19:30 (GMT)
commitef86890ce5f01e6b5716ddcc11daddcd4e297157 (patch)
treedcc37a98127e7afd658c7aadb4d45f2804969386 /t/t9806-git-p4-options.sh
parent6679c34c47be19ba8e9ea72129dfe768a49c5ab4 (diff)
downloadgit-ef86890ce5f01e6b5716ddcc11daddcd4e297157.zip
git-ef86890ce5f01e6b5716ddcc11daddcd4e297157.tar.gz
git-ef86890ce5f01e6b5716ddcc11daddcd4e297157.tar.bz2
git-p4: clone does not use --git-dir
Complain if --git-dir is given during a clone. It has no effect. Only --destination and --bare can change where the newly cloned git dir will be. Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9806-git-p4-options.sh')
-rwxr-xr-xt/t9806-git-p4-options.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/t/t9806-git-p4-options.sh b/t/t9806-git-p4-options.sh
new file mode 100755
index 0000000..8044fb0
--- /dev/null
+++ b/t/t9806-git-p4-options.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+test_description='git-p4 options'
+
+. ./lib-git-p4.sh
+
+test_expect_success 'start p4d' '
+ start_p4d
+'
+
+test_expect_success 'init depot' '
+ (
+ cd "$cli" &&
+ echo file1 >file1 &&
+ p4 add file1 &&
+ p4 submit -d "change 1" &&
+ echo file2 >file2 &&
+ p4 add file2 &&
+ p4 submit -d "change 2" &&
+ echo file3 >file3 &&
+ p4 add file3 &&
+ p4 submit -d "change 3"
+ )
+'
+
+test_expect_success 'clone no --git-dir' '
+ test_must_fail "$GITP4" clone --git-dir=xx //depot
+'
+
+test_expect_success 'kill p4d' '
+ kill_p4d
+'
+
+test_done