Skip to content

Conversation

@jablan
Copy link
Collaborator

@jablan jablan commented Nov 3, 2025

if target.Params is not there (missing section in the config), pull --branch ... segfaults

phrase/phrase-cli#174

@jablan jablan requested review from Copilot and theSoenke November 3, 2025 14:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a segmentation fault that occurs when using the pull command with the --branch argument when the Params field is not initialized in the target configuration.

Key Changes:

  • Added nil check for target.Params before accessing it to prevent segfault
  • Initialize target.Params with empty PullParams struct when nil

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jablan jablan merged commit 2f33f92 into main Nov 4, 2025
11 checks passed
@jablan jablan deleted the cli-556-segfault-on-cli-pull branch November 4, 2025 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants