File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,13 @@ freebsd:BUILDDATE = $$system(date -j -R -r "${SOURCE_DATE_EPOCH:-$(date +%
7373macx :BUILDDATE = $$system(date -j -R -r "${SOURCE_DATE_EPOCH:-$(date +%s)}" )
7474GIT_COMMIT_ID = $$system(git log -n 1 --pretty =format :"%H" )
7575GIT_COMMIT_DATE = $$system(git log -n 1 --pretty =format :"%ci" )
76- GIT_BRANCH = $$system(scripts /git -get -branch . sh)
76+
77+ unix {
78+ GIT_BRANCH = $$system(sh scripts /git -get -branch . sh)
79+ }
80+ else {
81+ GIT_BRANCH = $$system(pwsh scripts /git -get -branch . ps1)
82+ }
7783
7884message ("GIT_BRANCH: " $$GIT_BRANCH )
7985DEFINES += \
Original file line number Diff line number Diff line change 1+ $HASH = git log -- pretty=% h -1
2+ git show-ref | select-string $HASH | select-string -NotMatch HEAD | foreach {$_ -replace ' .*/(.*)' , ' $1' }
You can’t perform that action at this time.
0 commit comments