From 2391236a3871440f634da1a9425629205e3fba1b Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Sun, 23 Apr 2023 23:20:18 +0200 Subject: [PATCH] Change how we get the current branch name Signed-off-by: Magic_RB --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index b560e04..ef1b106 100644 --- a/flake.nix +++ b/flake.nix @@ -72,7 +72,7 @@ _flake_metadata="$(nix flake metadata git+file://$PWD?rev="$(git rev-parse HEAD)" --json)" export TF_VAR_flake_rev="$(echo "$_flake_metadata" | jq .locked.rev -r)" export TF_VAR_flake_sha="$(echo "$_flake_metadata" | jq .locked.narHash -r)" - export TF_VAR_flake_ref="$(git name-rev --name-only HEAD)" + export TF_VAR_flake_ref="$(git rev-parse --abbrev-ref HEAD)" case "$1" in "env") shift 1