You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using git subrepo in CI to automate management of satellite repos but I need a way to git subrepo push from a commit SHA instead of a branch in this context. Because I'm not able to checkout a branch in my use case, I get the following error:
"git-subrepo: Must be on a branch to run this command."
Is there a workaround? If not, are there any future plans to support this capability?
The text was updated successfully, but these errors were encountered:
The workaround is to create a branch as part of the scripts that do your satellite repo maintenance on your CI. I do the same and my branch name is is the Jenkins job number. The branch doesn't have to reflect anything in relation to either the source or destination it just has to exist due to the complications of how worktrees interact with the commands we are using internally.
There is the potential for refactoring subrepo such that it doesn't require being on a branch, and I would accept patches to accomplish this, but it isn't something I personally desire to take on.
I'm using git subrepo in CI to automate management of satellite repos but I need a way to
git subrepo push
from a commit SHA instead of a branch in this context. Because I'm not able to checkout a branch in my use case, I get the following error:Is there a workaround? If not, are there any future plans to support this capability?
The text was updated successfully, but these errors were encountered: