From 063697c824c7ed9cc5e02e891605f6988e72761b Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 6 Aug 2023 00:57:00 +0200 Subject: [PATCH] Remote and branch should be specified in git pull --tags --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 8ff691482..0a841eb62 100644 --- a/.drone.yml +++ b/.drone.yml @@ -90,7 +90,7 @@ steps: - echo "--- Parsing metadata" - git config --global --add safe.directory $PWD - - git pull --tags + - git pull origin master --tags - export VERSION=$(python setup.py --version) - export HEAD=$(git log | head -1 | awk '{printf "%.8s", $2}') - export GIT_VERSION="$VERSION.r$(git log --pretty=oneline HEAD...v$VERSION | wc -l).$HEAD"