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 +%
73
73
macx :BUILDDATE = $$system(date -j -R -r "${SOURCE_DATE_EPOCH:-$(date +%s)}" )
74
74
GIT_COMMIT_ID = $$system(git log -n 1 --pretty =format :"%H" )
75
75
GIT_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
+ }
77
83
78
84
message ("GIT_BRANCH: " $$GIT_BRANCH )
79
85
DEFINES += \
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