Automations don't work with Jujutsu VCS changes
- Dominant language
- No language data
- Stars
- 2.1k
- Forks
- 153
- PR merge metrics
- No merged PRs in 30d
Description
### Short summary
Automations fail to run because my repo uses JJ for version control which puts the underlying Git repo in a Detached HEAD state
### Affected version or release
v1.0.6
### Installation context
_No response_
### What happened?
When automations get triggered, the following error message is surfaced:
`Branch workflow cannot start from a detached HEAD. Check out the branch you want this workflow to run on, then run it again.`
### Steps to reproduce
1. Initialize JJ in a Git repo
2. Create a new JJ change
3. Create an automation on that repo
### Expected behavior
The automation is able to run successfully
### Additional context
_No response_
Contributor guide
Research direction
Reproduce the issue using the listed steps: initialize Jujutsu in a Git repository, create a JJ change, and trigger an automation. Start from the detached-HEAD error path and verify how automation startup handles JJ-managed repositories. Done means the automation runs successfully instead of reporting that the workflow cannot start from a detached HEAD.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100