From 44ec876a584bc9d19d55278186ad1ee1b42005b4 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Thu, 9 May 2019 12:20:00 +0100 Subject: [PATCH] Remove redundant scripts These two scripts are functionally replaced by "git review". The cloning script is kept becasue it sets up the gerrit repos and the signature of the user. Change-Id: I2e87fa813e94da857b7304367859dd09c7a4c371 Signed-off-by: liamfallon --- onap-reviews/heis-pull-review.sh | 39 ------------------------------- onap-reviews/heis-push2nordix.sh | 40 -------------------------------- 2 files changed, 79 deletions(-) delete mode 100755 onap-reviews/heis-pull-review.sh delete mode 100755 onap-reviews/heis-push2nordix.sh diff --git a/onap-reviews/heis-pull-review.sh b/onap-reviews/heis-pull-review.sh deleted file mode 100755 index 1d80538..0000000 --- a/onap-reviews/heis-pull-review.sh +++ /dev/null @@ -1,39 +0,0 @@ -#! /bin/bash - -# ============LICENSE_START======================================================= -# Copyright (C) 2018 The Nordix Foundation. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# SPDX-License-Identifier: Apache-2.0 -# ============LICENSE_END========================================================= - -# -# This script pulls a review from the Nordix gerrit repository for rework. The script: -# - checks out the nordix-dev branch of the repository -# - resets the nordix-dev branch to be at the latest merged version of the nordix-dev branch on the -# Nordix gerrit repository -# - pulls the given review onto the master branch -# - -if [ $# -ne 1 ] -then - echo "usage $0 commit-id" - exit 1 -fi - -git checkout master -git fetch origin -git reset --hard origin/master - -git pull origin $1 diff --git a/onap-reviews/heis-push2nordix.sh b/onap-reviews/heis-push2nordix.sh deleted file mode 100755 index b3b59e2..0000000 --- a/onap-reviews/heis-push2nordix.sh +++ /dev/null @@ -1,40 +0,0 @@ -#! /bin/bash - -# ============LICENSE_START======================================================= -# Copyright (C) 2018 The Nordix Foundation. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# SPDX-License-Identifier: Apache-2.0 -# ============LICENSE_END========================================================= - -# -# This script creates or updates a review on the Nordix gerrit repository -# - -if [ $# -ne 0 ] -then - echo "usage $0" - echo " command does not take any arguments" - exit 1 -fi - -git push origin HEAD:refs/for/master - -retVal=$? -if [ $retVal -eq 0 ] -then - git log -1 -else - echo "push to Nordix failed" -fi -- 2.25.1