diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-11-24 18:03:20 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-24 18:03:20 -0800 |
commit | be4b37b9ad22ecc6b4ff5782de8ac0d6d89e2bb7 (patch) | |
tree | 46002951c1e7c2b36aa1ca49e8bacd6392ebc43e /t | |
parent | bc2b8eafaf074492e0489974b4086b3a0f354e7e (diff) | |
parent | 481f0ee60eef2c34b891e5d04b7e6e5a955eedf4 (diff) | |
download | git-be4b37b9ad22ecc6b4ff5782de8ac0d6d89e2bb7.tar.gz |
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-x | t/t6008-rev-list-submodule.sh | 42 |
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 0000000000..88e96fb91b --- /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 |