From 3a0c59b3703efbc9c77dfddfc06a3fd2b29e57f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hohwiller?= Date: Mon, 30 May 2022 09:04:42 +0200 Subject: [PATCH] #632: improved fork detection github user and OS user may differ --- scripts/src/main/resources/scripts/command/release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/src/main/resources/scripts/command/release b/scripts/src/main/resources/scripts/command/release index 65b5f83ab..9e606a3a3 100755 --- a/scripts/src/main/resources/scripts/command/release +++ b/scripts/src/main/resources/scripts/command/release @@ -35,7 +35,7 @@ then doFail "Your local git repository has uncommitted changes. Please use 'git stash' and rerun on clean repo." fi -if git remote -v | grep -q "github.com/$(whoami)" +if git remote -v | grep -q "github.com/$(whoami)" || git remote -v | grep -q "upstream" then git remote -v doConfirmWarning "You seem to work on a fork. Releases should be done on the original repository!\nWe strongly recommend to abort and rerun on original repository."