Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rev-spec parsing can now handle the empty tree as full hex hash. (…
…#470) Even though the empty-tree object can be found when searched via `Repository::find_object()`, previously it was not locatable when used during rev-spec parsing.
- Loading branch information
Showing
7 changed files
with
62 additions
and
11 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
3 changes: 3 additions & 0 deletions
3
git-repository/tests/fixtures/generated-archives/make_diff_repo.tar.xz
Git LFS file not shown
4 changes: 2 additions & 2 deletions
4
git-repository/tests/fixtures/generated-archives/make_rev_spec_parse_repos.tar.xz
Git LFS file not shown
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,18 @@ | ||
#!/bin/bash | ||
set -eu -o pipefail | ||
|
||
git init -q | ||
|
||
git checkout -b main | ||
mkdir dir | ||
touch a b dir/c | ||
git add . | ||
git commit -q -m c1 | ||
|
||
echo a >> a | ||
echo b >> b | ||
echo dir/c >> dir/c | ||
git commit -q -am c2 | ||
|
||
echo a1 >> a | ||
git commit -q -am c3 |
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