File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,11 @@ echo ""
2323
2424cd " $PROJECT_ROOT "
2525
26- # Verify no uncommitted changes
27- if [ -n " $( git status --porcelain) " ]; then
26+ # Verify no uncommitted changes (excluding go.work files which are git-ignored)
27+ UNCOMMITTED=$( git status --porcelain | grep -v " go.work" || true)
28+ if [ -n " $UNCOMMITTED " ]; then
2829 echo " ❌ Error: You have uncommitted changes. Please commit or stash them first."
30+ echo " $UNCOMMITTED "
2931 exit 1
3032fi
3133
Original file line number Diff line number Diff line change @@ -74,11 +74,12 @@ if [ "$LOCAL" != "$REMOTE" ]; then
7474fi
7575log_success " Main is up to date"
7676
77- # Check 3: Verify no uncommitted changes
77+ # Check 3: Verify no uncommitted changes (excluding go.work files which are git-ignored)
7878log_info " Checking for uncommitted changes..."
79- if [ -n " $( git status --porcelain) " ]; then
79+ UNCOMMITTED=$( git status --porcelain | grep -v " go.work" || true)
80+ if [ -n " $UNCOMMITTED " ]; then
8081 log_error " Uncommitted changes detected:"
81- git status --short
82+ echo " $UNCOMMITTED "
8283 log_info " Commit or stash changes before releasing"
8384 exit 1
8485fi
You can’t perform that action at this time.
0 commit comments