mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Do not use a message branch if no msg id provided to prompt tracer
This commit is contained in:
parent
82f3d79064
commit
8bd94bf855
1 changed files with 2 additions and 1 deletions
|
@ -512,6 +512,7 @@ def commit_conversation_trace(
|
||||||
msg_branch = f"m_{mid}" if mid else None
|
msg_branch = f"m_{mid}" if mid else None
|
||||||
if msg_branch and msg_branch not in repo.branches:
|
if msg_branch and msg_branch not in repo.branches:
|
||||||
repo.create_head(msg_branch)
|
repo.create_head(msg_branch)
|
||||||
|
if msg_branch:
|
||||||
repo.heads[msg_branch].checkout()
|
repo.heads[msg_branch].checkout()
|
||||||
|
|
||||||
# Include file with content to commit
|
# Include file with content to commit
|
||||||
|
|
Loading…
Reference in a new issue