This is an automated email from the ASF dual-hosted git repository.

zfeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-seata-go.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d2e765b optimize: fix git status issue (#894)
4d2e765b is described below

commit 4d2e765bdead0518f167b6264e074731a4c66956
Author: jimin <[email protected]>
AuthorDate: Sat Nov 8 17:56:02 2025 +0800

    optimize: fix git status issue (#894)
    
    fix git status issue
---
 makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/makefile b/makefile
index 3649ac4c..dcd971da 100644
--- a/makefile
+++ b/makefile
@@ -16,6 +16,8 @@
 #
 
 VERSION=$(shell tail -n 1 "./VERSION" 2> /dev/null)
+GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD 2>/dev/null || echo 
"unknown")
+GIT_REVISION=$(shell git rev-parse HEAD 2>/dev/null || echo "unknown")
 
 GO_FLAGS := -ldflags "-X main.Branch=$(GIT_BRANCH) -X 
main.Revision=$(GIT_REVISION) -X main.Version=$(VERSION) -extldflags 
\"-static\" -s -w" -tags netgo
 GO = go


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to