aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-11-18 16:16:37 -0800
committerJunio C Hamano <gitster@pobox.com>2007-11-18 16:16:37 -0800
commit5d3d1cacc139194672a6a184509bb620a19b2497 (patch)
tree872d798fe9d07c32ff768ca83a5df1450f09a212 /t
parentd577bc58a3424f4d0d7f7c8094753b92cb7cb823 (diff)
parent4d1012c3709e356107d0fb0e3bf5a39e0d5c209d (diff)
downloadgit-5d3d1cacc139194672a6a184509bb620a19b2497.tar.gz
git-5d3d1cacc139194672a6a184509bb620a19b2497.tar.xz
Merge branch 'lt/rev-list-gitlink'
* lt/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 000000000..88e96fb91
--- /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