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

http clone of git usercontent folder fails with some git versions, even though ssh clone works

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-usercontent-plugin
    • None
    • git-usercontent-plugin 1.4
      git-plugin 2.2.7
      git-client-plugin 1.11.1
      Jenkins 1.580.1
      Debian Jessie (git 1.9.4.0)
      Windows 7 (msysgit 1.9.4)
      CentOS 7 (git 1.8.3.0)

      The git-usercontent plugin reports an error when I try to clone the repository outside Jenkins using git command line to clone through the http URL (for example http://mark-pc1:45089/.

      The following ssh based clone works in all my tests:

      git clone ssh://mark-pc1:49438/userContent.git
      

      The following http based clone fails (on the specified git versions):

      git clone http://mark-pc1:8080/userContent.git
      

      The http based clone succeeds on Debian Wheezy (git 1.7.10.4).

      The http based clone fails on Debian Jessie (git 1.9.4.0), Ubuntu 14.04 (git 1.9.1), and CentOS 7 (git 1.8.3.0).

      The command line git error message in the failure is:

      mwaite@mark-pc1:~$ git clone http://mark-pc1:8080/userContent.git
      Cloning into 'userContent'...
      fatal: http://mark-pc1:8080/userContent.git/info/refs not valid: is this a git repository?
      

      The work around is to use ssh to clone the repository instead of http.

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: