mirror of
https://github.com/mindfold-ai/Trellis.git
synced 2026-04-25 18:15:54 +03:00
[PR #14] [MERGED] fix: resolve exit code 1 in get-context.sh #42
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Trellis#42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mindfold-ai/Trellis/pull/14
Author: @Yjh-Rking
Created: 1/31/2026
Status: ✅ Merged
Merged: 1/31/2026
Merged by: @taosu0216
Base:
main← Head:fix/get-context-exit-code📝 Commits (1)
74d8381fix: resolve exit code 1 in get-context.sh📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
.trellis/scripts/common/git-context.sh(+2 -2)📄 Description
Problem
Running
.trellis/scripts/get-context.shreturned exit code 1 even when executed successfully.Actual error output:
Root Cause
In bash,
(( 0 ))returns exit code 1. The script usesset -e(exit on error), causing:((task_count++))- returns exit code 1 when counter is 0((my_task_count++))- same issueSolution
Append
|| trueto arithmetic expressions to ensure they always return exit code 0:Files Changed
.trellis/scripts/common/git-context.sh(lines 185, 208)Testing
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.