Skip to content
Snippets Groups Projects
Verified Commit 177c1353 authored by Morten Linderud's avatar Morten Linderud :surfer:
Browse files

db-functions: Don't error when there are no tags in the state repository


Signed-off-by: default avatarMorten Linderud <morten@linderud.pw>
parent f9afa36f
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,9 @@ vcs_push(){
vcs_tag(){
if [[ ! $(arch_git -C "$GITREPO" tag --points-at HEAD) ]]; then
tag=$(arch_git -C "$GITREPO" describe --tags --abbrev=0)
if ! tag=$(arch_git -C "$GITREPO" describe --tags --abbrev=0 2>/dev/null); then
tag=0
fi
((tag++))
arch_git -C "$GITREPO" tag "$tag"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment