Skip to content

--pr cannot be used with --version or --commit #335

@marchuk-vlad

Description

@marchuk-vlad

Describe the bug
The bug is here.
According to operator precedence, the current condition means
if (pr and version not in {None, "nightly"}) or commit,
but it should be
if pr and (version not in {None, "nightly"} or commit).
As a result, specifying --commit causes a crash.

To Reproduce
comfy --skip-prompt --workspace ./confy2/ install --version nightly --commit 93292bc450dd291925c45adea00ebedb8a3209ef --manager-commit 3.31.12 --cpu
--pr cannot be used with --version or --commit

Expected behavior
Guess :)

Nice to have

  • Terminal output
  • Screenshots

Additional context
I think no needs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions