mirror of
https://github.com/mvp/uhubctl.git
synced 2026-05-17 08:26:29 +03:00
Do not allow just commit id to be used as version
Homebrew is forcing `--no-tags` for cloned repos. Because we used `git describe --always` brew was choosing raw commit id as version, which is quite bad. By removing `--always` we will use contents of VERSION file as a backup.
This commit is contained in:
2
Makefile
2
Makefile
@@ -14,7 +14,7 @@ RM := rm -rf
|
||||
CC ?= gcc
|
||||
CFLAGS ?= -g -O0
|
||||
CFLAGS += -Wall -Wextra -std=c99 -pedantic
|
||||
GIT_VERSION := $(shell git describe --match "v[0-9]*" --abbrev=8 --dirty --always --tags | cut -c2-)
|
||||
GIT_VERSION := $(shell git describe --match "v[0-9]*" --abbrev=8 --dirty --tags | cut -c2-)
|
||||
ifeq ($(GIT_VERSION),)
|
||||
GIT_VERSION := $(shell cat VERSION)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user