Skip to content
Snippets Groups Projects
Commit 179977a0 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

py-version.sh: Use --always option of git describe.

parent fcb347b9
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Note: git describe doesn't work if no tag is available
git_tag="$(git describe --dirty 2> /dev/null || git rev-parse --short HEAD)"
git_tag="$(git describe --dirty --always)"
git_hash="$(git rev-parse --short HEAD 2> /dev/null || echo unknown)"
git_files_are_clean=1
# Check if there are any modified files.
......
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