Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hohwille opened this issue Oct 22, 2024 · 0 comments
Open
Labels
bug Something isn't working git related to git version control tool (incl. git-bash) settings ide-settings repo and replated processes and features setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup)

Comments

@hohwille
Copy link
Member

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}"

@hohwille hohwille added bug Something isn't working settings ide-settings repo and replated processes and features setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup) git related to git version control tool (incl. git-bash) labels Oct 22, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working git related to git version control tool (incl. git-bash) settings ide-settings repo and replated processes and features setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup)
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant