summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-11-25 02:03:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-25 02:03:20 (GMT)
commitbe4b37b9ad22ecc6b4ff5782de8ac0d6d89e2bb7 (patch)
tree46002951c1e7c2b36aa1ca49e8bacd6392ebc43e /t
parentbc2b8eafaf074492e0489974b4086b3a0f354e7e (diff)
parent481f0ee60eef2c34b891e5d04b7e6e5a955eedf4 (diff)
downloadgit-be4b37b9ad22ecc6b4ff5782de8ac0d6d89e2bb7.zip
git-be4b37b9ad22ecc6b4ff5782de8ac0d6d89e2bb7.tar.gz
git-be4b37b9ad22ecc6b4ff5782de8ac0d6d89e2bb7.tar.bz2
Merge branch 'lt/maint-rev-list-gitlink' into maint
* lt/maint-rev-list-gitlink: Fix rev-list when showing objects involving submodules
Diffstat (limited to 't')
-rwxr-xr-xt/t6008-rev-list-submodule.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/t/t6008-rev-list-submodule.sh b/t/t6008-rev-list-submodule.sh
new file mode 100755
index 0000000..88e96fb
--- /dev/null
+++ b/t/t6008-rev-list-submodule.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# Copyright (c) 2007 Johannes E. Schindelin
+#
+
+test_description='git rev-list involving submodules that this repo has'
+
+. ./test-lib.sh
+
+test_expect_success 'setup' '
+ : > file &&
+ git add file &&
+ test_tick &&
+ git commit -m initial &&
+ echo 1 > file &&
+ test_tick &&
+ git commit -m second file &&
+ echo 2 > file &&
+ test_tick &&
+ git commit -m third file &&
+
+ rm .git/index &&
+
+ : > super-file &&
+ git add super-file &&
+ git submodule add . sub &&
+ git symbolic-ref HEAD refs/heads/super &&
+ test_tick &&
+ git commit -m super-initial &&
+ echo 1 > super-file &&
+ test_tick &&
+ git commit -m super-first super-file &&
+ echo 2 > super-file &&
+ test_tick &&
+ git commit -m super-second super-file
+'
+
+test_expect_success "Ilari's test" '
+ git rev-list --objects super master ^super^
+'
+
+test_done