mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-19 19:14:52 +00:00
fix ATMOSPHERE_GIT_BRANCH if use tag
This commit is contained in:
parent
3e254e39e5
commit
9e5342689e
1 changed files with 5 additions and 1 deletions
|
@ -231,7 +231,11 @@ endif
|
|||
#---------------------------------------------------------------------------------
|
||||
# get atmosphere git revision information
|
||||
#---------------------------------------------------------------------------------
|
||||
export ATMOSPHERE_GIT_BRANCH := $(shell git symbolic-ref --short HEAD)
|
||||
ifneq ($(strip $(shell git symbolic-ref --short HEAD 2>/dev/null)),)
|
||||
export ATMOSPHERE_GIT_BRANCH := $(shell git symbolic-ref --short HEAD)
|
||||
else
|
||||
export ATMOSPHERE_GIT_BRANCH := notbranch
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(shell git status --porcelain 2>/dev/null)),)
|
||||
export ATMOSPHERE_GIT_REVISION := $(ATMOSPHERE_GIT_BRANCH)-$(shell git rev-parse --short HEAD)
|
||||
|
|
Loading…
Add table
Reference in a new issue