From 6920a88dc07f49c7f6a87cfa60f1beecbee959be Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 25 Oct 2023 19:09:21 +0200 Subject: [PATCH] nix: Fix postgrest-release on rel-branches pushing to the right branch --- nix/tools/release/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/tools/release/default.nix b/nix/tools/release/default.nix index 46d8bee22d..d7a07e2a29 100644 --- a/nix/tools/release/default.nix +++ b/nix/tools/release/default.nix @@ -111,7 +111,7 @@ let remote="$(git remote -v | grep PostgREST/postgrest | grep push | cut -f1)" trap "" ERR - push="git push --atomic $remote main v$new_version" + push="git push --atomic $remote $(git rev-parse --abbrev-ref HEAD) v$new_version" echo "To push both the branch and the new tag, the following will be run:" echo