Skip to content

Commit

Permalink
chore(bors): merge pull request openebs#743
Browse files Browse the repository at this point in the history
743: build: support multiple head tags r=tiagolobocastro a=tiagolobocastro

When we tag with no changes, we should pick the latest annotated tag.

Co-authored-by: Tiago Castro <[email protected]>
  • Loading branch information
mayastor-bors and tiagolobocastro committed Feb 14, 2024
2 parents d812c09 + 752ad05 commit 72cc1e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nix/lib/version.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ stdenv.mkDerivation {
vers=${tag}
if [ -z "$vers" ]; then
vers=`${git}/bin/git tag --points-at HEAD`
vers=`${git}/bin/git describe --exact-match 2>/dev/null || echo -n`
fi
if [ -z "$vers" ]; then
vers=`${git}/bin/git rev-parse --short=12 HEAD`
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dockerhub_tag_exists() {

# Get the tag at the HEAD
get_tag() {
vers=`git tag --points-at HEAD`
vers=$(git describe --exact-match 2>/dev/null || echo -n)
echo -n $vers
}
get_hash() {
Expand Down

0 comments on commit 72cc1e1

Please sign in to comment.