test: Fix shellcheck by giving git-hashing scripts shebangs

This seems to be the way to do it now, even though I can't run them
without setting at least one env var.
I'll only fix shellcheck for now. Don't shoot the messenger.

It isn't quite clear to me why the previous commit masked this problem,
but I'm glad shellcheck has an effect or more effect now.

(cherry picked from commit 77a8386022)

# Conflicts:
#	tests/functional/git-hashing/fixed.sh
This commit is contained in:
Robert Hensing
2025-01-29 21:53:12 +01:00
committed by Mergify
parent 468aa61abb
commit cd4d9ca673
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
source common.sh
# Store layer needs bugfix
requireDaemonNewerThan "2.27pre20250122"
nix-build ../fixed.nix -A git --no-out-link

2
tests/functional/git-hashing/simple.sh Normal file → Executable file
View File

@@ -1,3 +1,5 @@
#!/usr/bin/env bash
source common.sh
repo="$TEST_ROOT/scratch"