-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'lt/maint-rev-list-gitlink' into maint
* lt/maint-rev-list-gitlink: Fix rev-list when showing objects involving submodules
- Loading branch information
Showing
4 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters