Skip to content

git fails if not authenticated, request for login/password not visible to the user #1108

@hohwille

Description

@hohwille

Expected behavior

As a IDEasy user, I want IDEasy to call git in an interactive way so that I am asked for credentials if needed.

Actual behavior

Step 'Clone or pull repository' failed: Command git failed with exit code 128 - full commandline was /usr/bin/git clone --recursive https://git.company.com/repo/that/requires/authentication.git --config core.autocrlf=false .

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. fork ide-settings
  2. setup a git repo that requires authentication (via HTTPS)
  3. configure a repository via settings/repositories/authtest.properties
  4. ide repository setup authtest

Related/Dependent Issues

Comments/Hints:

When calling the git command manually in the terminal, I am asked for login and password.
If I have credential manager configured the password is stored and afterwards it also works in IDEasy - so we have a workaround.
However, unless --batch mode is active, I would expect to also get the request for login credentials from git if called from IDEasy.

Affected version:

  • Problem reproduced on Windows and MacOS, most likely also on Linux but not tested
  • 2025.02.002

Metadata

Metadata

Assignees

Labels

gitgit version management tool integrationrepositoryCommandlet to clone, build or import git repositoriessettingside-settings repo and replated processes and features

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions