Skip to content

Commit 7711db0

Browse files
authored
fix: specify commit hash (#213)
1 parent b2ba7d0 commit 7711db0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

comfy_cli/cmdline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,14 @@ def entry(
137137
# logging.info(f"scan_dir took {end_time - start_time:.2f} seconds to run")
138138

139139

140-
def validate_commit_and_version(commit: Optional[str], ctx: typer.Context):
140+
def validate_commit_and_version(commit: Optional[str], ctx: typer.Context) -> Optional[str]:
141141
"""
142142
Validate that the commit is not specified unless the version is 'nightly'.
143143
"""
144144
version = ctx.params.get("version")
145145
if commit and version != "nightly":
146146
raise typer.BadParameter("You can only specify the commit if the version is 'nightly'.")
147+
return commit
147148

148149

149150
@app.command(help="Download and install ComfyUI and ComfyUI-Manager")

0 commit comments

Comments
 (0)