Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59897

cygwin git can't find askpass batch file with '\' in path name

    Details

    • Similar Issues:

      Description

      Hi,

      I let Windows cleanup some files includeing the tmp files.

      Then I hit the following Problem described later.

      I am aware of:

      "The Git Client plugin uses GIT_ASKPASS and creates a temporary script to execute when git prompts for credentials. "  https://wiki.jenkins.io/display/JENKINS/Git+Client+Plugin.

      Can I somehow force the plugin to regenerate those temp files like

      pass485608812120386475.bat?

      Or do you have a other solution on how to fix this problem on my installation?

       

      Regards Stefan

       

      Problem :

      Failed to connect to repository : Command "git.exe ls-remote -h https://****Firmware HEAD" returned status code 128:
      stdout:
      stderr: error: cannot run C:\Users\SVCBUI~1\AppData\Local\Temp\pass485608812120386475.bat: No such file or directory
      fatal: could not read Username for 'https://****.com': terminal prompts disabled

       

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment -

          Thanks. I don't run with cygwin and I don't test with cygwin. I have enough complexities in the git plugin testing environment that I have not been willing to extend git plugin support to cygwin. Git for Windows is the git officially supported by the git client plugin.

          Independent of official support, I think it is a very good idea to change the git client plugin to use Unix style '/' in the GIT_ASKPASS. I'm marking this bug report as 'newbie-friendly' so that someone can experiment with writing tests to check the condition and then changing the value of GIT_ASKPASS and SSH_ASKPASS to use Unix style '/' in the path instead of the Windows style '\' .

          Show
          markewaite Mark Waite added a comment - Thanks. I don't run with cygwin and I don't test with cygwin. I have enough complexities in the git plugin testing environment that I have not been willing to extend git plugin support to cygwin. Git for Windows is the git officially supported by the git client plugin. Independent of official support, I think it is a very good idea to change the git client plugin to use Unix style '/' in the GIT_ASKPASS. I'm marking this bug report as 'newbie-friendly' so that someone can experiment with writing tests to check the condition and then changing the value of GIT_ASKPASS and SSH_ASKPASS to use Unix style '/' in the path instead of the Windows style '\' .
          Hide
          markewaite Mark Waite added a comment -

          Stefan Eicher were you also using cygwin git on the machine which showed this failure?

          Show
          markewaite Mark Waite added a comment - Stefan Eicher were you also using cygwin git on the machine which showed this failure?
          Hide
          r0mai Andras Kucsma added a comment -

          Thanks Mark!

          Show
          r0mai Andras Kucsma added a comment - Thanks Mark!
          Hide
          r0mai Andras Kucsma added a comment -

          A fix for this has been merged to git: https://github.com/git/git/commit/05ac8582bc722c8bd3ab7a0cafa681bec198a06d
          As far as I can see, it is planned to be released in git 2.27.0.

          Show
          r0mai Andras Kucsma added a comment - A fix for this has been merged to git: https://github.com/git/git/commit/05ac8582bc722c8bd3ab7a0cafa681bec198a06d As far as I can see, it is planned to be released in git 2.27.0.
          Hide
          markewaite Mark Waite added a comment -

          Fix merged in Git for Windows 2.27.0.

          Show
          markewaite Mark Waite added a comment - Fix merged in Git for Windows 2.27.0.

            People

            • Assignee:
              Unassigned
              Reporter:
              eicher Stefan Eicher
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: