-
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.
* maint: fast-import: close pack before unlinking it pager: do not dup2 stderr if it is already redirected git-show: do not segfault when showing a bad tag
- Loading branch information
Showing
4 changed files
with
32 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
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,20 @@ | ||
#!/bin/sh | ||
|
||
test_description='git show' | ||
|
||
. ./test-lib.sh | ||
|
||
test_expect_success setup ' | ||
echo hello world >foo && | ||
H=$(git hash-object -w foo) && | ||
git tag -a foo-tag -m "Tags $H" $H && | ||
HH=$(expr "$H" : "\(..\)") && | ||
H38=$(expr "$H" : "..\(.*\)") && | ||
rm -f .git/objects/$HH/$H38 | ||
' | ||
|
||
test_expect_success 'showing a tag that point at a missing object' ' | ||
test_must_fail git --no-pager show foo-tag | ||
' | ||
|
||
test_done |