mirror of
https://github.com/NixOS/nix
synced 2025-07-02 01:01:48 +02:00
Don't dereference top-level regular files
Since this yielded an empty directory as far back as Nix 2.3, we don't really need special handling for executables vs non-executables.
This commit is contained in:
parent
e0012b97ab
commit
7c18b4d060
3 changed files with 3 additions and 17 deletions
|
@ -101,12 +101,7 @@ struct GitRepo
|
|||
|
||||
/**
|
||||
* If the specified Git object is a directory with a single entry
|
||||
* that is a directory or a non-executable regular file, return
|
||||
* the ID of that object.
|
||||
*
|
||||
* Note: We don't do this for executable files because they don't
|
||||
* have a tree hash in the Git object model that distinguishes
|
||||
* them from non-executable files.
|
||||
* that is a directory, return the ID of that object.
|
||||
*/
|
||||
virtual Hash dereferenceSingletonDirectory(const Hash & oid) = 0;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue