Unable to clone GitHub repositories via SourceTree – invalid URL / redirect error

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • None
    • Affects Version/s: 3.4.27
    • Component/s: Git
    • None
    • Minor

      When attempting to clone a repository hosted on a GitHub Enterprise instance using SourceTree (HTTPS), the repository URL is not recognized as a valid source path / URL.

      SourceTree reports that the URL is invalid, and the clone operation fails. In the Details view, the underlying Git command (git ls-remote) fails due to an HTTP redirect to an authentication (SAML/MFA) endpoint.

      This redirect seems to be handled correctly by Git CLI, but not by SourceTree.

      Steps to Reproduce

      1. Open SourceTree
      1. Select Clone
      1. Paste a GitHub Enterprise repository URL (HTTPS)
      1. Attempt to clone the repository

      Actual Result

      • SourceTree reports that the URL is not a valid source path / URL
      • Clone operation fails

      Expected Result

      • SourceTree should be able to handle the authentication redirect (as Git CLI does)
      • Repository should clone successfully after authentication

      Additional Information / Observations

      • The same repository URL works correctly when cloning via Git Bash (CLI)
      • Authentication and permissions are valid
      • Issue occurs only in SourceTree UI
      • Multiple URL formats were tested, with the same result
      • Screenshots attached showing the error and full Git command output

      Environment

      • OS: Windows
      • SourceTree version: 3.4.27
      • Git hosting: GitHub Enterprise
      • Protocol: HTTPS

            Assignee:
            Sharmila, Maria
            Reporter:
            Flavius Ciurciun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: