Skip to content

Commit

Permalink
Dispaly last commit version instead of branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyio committed Oct 2, 2024
1 parent 84d4f7f commit d7a9f7a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@

<section class="mt-2">
<sup class="text-blue-400">
<%= %x[git tag --list | sort | tail -n 1] %>
(<%= %x[git branch --show-current].strip %>)
<code>
<%= %x[git tag --list | sort | tail -n 1] %>
(<%= %x[git rev-parse --short HEAD].strip %>)
</code>
</sup>
</section>
</footer>
Expand Down

0 comments on commit d7a9f7a

Please sign in to comment.