-
Notifications
You must be signed in to change notification settings - Fork 2
Fixes gh-10 : Tests fail on git version v2.26.2 #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis pull request updates two shell scripts to improve error handling and simplify log messaging. In Changes
Sequence Diagram(s)sequenceDiagram
participant Tester as Test Runner
participant Script as _tests.sh Script
Tester->>Script: Call eval_testcase
alt "git-test.log" does not exist
Script->>Script: Generate git-test.log
Script-->>Tester: Log file created
else "git-test.log" exists
Script->>Tester: Output debug message ("Log file available")
end
sequenceDiagram
participant User as Initiator
participant Script as cmd_init Function
participant Git as Git Command
User->>Script: Start repository initialization
Script->>Git: Execute "git init -b base_branch"
alt Git init succeeds
Script->>Git: Execute "git add ."
alt Git add succeeds
Script-->>User: Repository initialized
else Git add fails
Script-->>User: Output error message and exit
end
else Git init fails
Script->>Git: Execute fallback "git init"
Script->>Git: Switch branch ("git switch -C base_branch")
Script->>Git: Execute "git add ."
alt Git add succeeds
Script-->>User: Repository initialized
else Git add fails
Script-->>User: Output error message and exit
end
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (5)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit