#!/bin/bash # Copyright (C) 2017-2020 The Project X-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC set -e echo echo "========================================" echo "Git log" echo "----------------------------------------" echo "----------------------------------------" echo echo "========================================" echo "Git fetching tags" echo "----------------------------------------" git fetch --tags || true echo "----------------------------------------" echo echo "========================================" echo "Git version info" echo "----------------------------------------" git log -n1 echo "----------------------------------------" git describe --tags || true echo "----------------------------------------" git describe --tags --always || true echo "----------------------------------------"