Skip to content

Cannot push a stack change to non-main branch with git repo #634

@Chuckame

Description

@Chuckame

Issue

When having a stack from a git repository with a non main branch, it doesn't work.

Error message during push:

command

cd /etc/komodo/repos/<the repo name> && git push --set-upstream origin main

stderr

error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/Chuckame/<the repo name>'

I've configured master but it still uses main

To reproduce

  • Create a repository and set a branch name to something else than main
  • create a stack from a git repository
  • Start the stack
  • Then make a change in the docker compose file
  • Then save -> Here it fails 💥

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.19.2bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions