From 612d21fb8afa6532906fe58122da16a14a28238c Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Wed, 19 Dec 2018 11:13:51 +0200 Subject: [PATCH] Don't run branch in branch-release if branch is not given Change-Id: I033d3bbf3d75330b40f4c3185fa6e1eb968c5936 --- releng/doc/release-helper.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/releng/doc/release-helper.sh b/releng/doc/release-helper.sh index 6e56cb55e..7875b863c 100755 --- a/releng/doc/release-helper.sh +++ b/releng/doc/release-helper.sh @@ -385,7 +385,9 @@ case "$action" in branch-release) fromBranch=$1 popd > /dev/null - bash $selfpath $version $fromBranch $user checkout + if [ -ne $fromBranch ]; then + bash $selfpath $version $fromBranch $user checkout + fi bash $selfpath $version $branch $user branch bash $selfpath $version $branch $user checkout bash $selfpath $version $branch $user prepare-release-branch $fromBranch -- 2.47.1