mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Added comment to test case
This commit is contained in:
parent
48083028ac
commit
0c32b0c8c3
1 changed files with 12 additions and 1 deletions
|
|
@ -1,5 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Please see https://github.com/NixOS/nix/issues/13457
|
||||
# for a higher description of the purpose of the test.
|
||||
# tl;dr;fetchGit will utilize the git cache and avoid refetching when possible.
|
||||
# It relies on the presence of either the commit when rev is provided
|
||||
# or checks if the ref refs/heads/<ref_name> if ref is provided.
|
||||
#
|
||||
# Unfortunately, git can occasionally "pack references" which moves the references
|
||||
# from individual files to a single unifies file.
|
||||
# When this occurs, nix can no longer check for the presence of the ref to check
|
||||
# for the mtime and will refetch unnecessarily.
|
||||
|
||||
source ../common.sh
|
||||
|
||||
requireGit
|
||||
|
|
@ -67,4 +78,4 @@ if [[ -e "$store_path/hello_again" ]]; then
|
|||
else
|
||||
echo "PASS: New commit was not fetched due to caching (as expected)."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue