Skip to content

Bug: --no-branch with -p in auto_commit.zsh causes error message #147

@sebastianhuus

Description

@sebastianhuus

Summary of the Issue

An error message is displayed when running the auto_commit.zsh script with both the -p (auto push) and --no-branch flags.

Steps to Reproduce

  1. Execute the auto_commit.zsh script with the -p and --no-branch flags.

Expected Behavior

The script should successfully commit to the current branch and auto-push the changes without any error messages, as implied by the combination of --no-branch and -p.

Actual Behavior

The script outputs the following error message:

Use --no-branch to commit to current branch, or -b/--branch to auto-create new branch

Additional Context

The error message suggests a potential conflict or misunderstanding in the intended usage of --no-branch when combined with the auto-push functionality (-p). It seems to indicate that --no-branch might be incompatible with the implicit branch handling that -p might trigger, or there's a logical inconsistency in how these flags interact.

🤖 Generated with Gemini CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions