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