summaryrefslogtreecommitdiff
path: root/t/t6008-rev-list-submodule.sh
blob: c4af9ca0a7edf6230dc6ca8ec10848545971fce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 "$(pwd)" 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