Skip to content

using settings URL with branch name not working on generic branch name #1390

Description

@hohwille

In an devonfw-ide project, I created a feature branch in the settings repository named tomcat to test some tomcat changes in the IDE settings.
I created a new devonfw-ide instance:

devon ide create test-project https://some-git.url/some/path.git#tomcat

This gave me the following error after cloning:

fatal: 'tomcat' could be both a local file and a tracking branch.
Please use -- (and optionally --no-guess) to disambiguate

******** ATTENTION ********
Failed to run command git
We are sorry for the inconvenience. Please check the above errors, resolve them and try again.
Exit code was 128

as it seems git checkout tomcat is not working due to this ambiguity but git switch tomcat did the trick.
So maybe that is all needed to be fixed here:

doRunCommand "git checkout ${git_opts} ${branch}"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggitrelated to git version control tool (incl. git-bash)settingside-settings repo and replated processes and featuressetuprelated to the setup process of devonfw-ide (setup[.bat] and devon ... setup)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions