mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
SHA-256 is Git's next hash algorithm. The world is still basically stuck on SHA-1 with git, but shouldn't be. We can at least do our part to get ready. On the C++ implementation side, only a little bit of generalization was needed, and that was fairly straight-forward. The tests (unit and system) were actually bigger, and care was taken to make sure they were all cover both algorithms equally.
15 lines
285 B
Bash
15 lines
285 B
Bash
# shellcheck shell=bash
|
|
|
|
source ../common.sh
|
|
|
|
TODO_NixOS # Need to enable git hashing feature and make sure test is ok for store we don't clear
|
|
|
|
clearStore
|
|
clearCache
|
|
|
|
# Need backend to support git-hashing too
|
|
requireDaemonNewerThan "2.19"
|
|
|
|
enableFeatures "git-hashing"
|
|
|
|
restartDaemon
|