From ff0c8424c87f1d702d98cdb593e6b701c7e61b15 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 25 Nov 2019 15:49:31 +0100 Subject: [PATCH] SCRIPTS: create-release: show the correct origin name in suggested commands create-release shows the next steps at the end and suggest to use "git push origin master" but on my machine it's not "origin" so let's determine it using git config and only use origin as a fall back. --- scripts/create-release | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/create-release b/scripts/create-release index 4eb1fc156..fe6c802e6 100755 --- a/scripts/create-release +++ b/scripts/create-release @@ -225,8 +225,9 @@ read do_commit || die "Failed to commit changes" do_tag || die "Failed to tag changes" +remote=$(git config --get branch.master.remote) echo "Do not forget to push updates, publish and announce this version :" echo -echo "git push origin master v$NEW" +echo "git push ${remote:-origin} master v$NEW" echo "${0%/*}/publish-release" echo "${0%/*}/announce-release"