Cloning over HTTP ignores any characters after the .git in the URL

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Low
    • 1.1
    • Affects Version/s: 1.0
    • Component/s: None

      When cloning a Git repository over HTTP, Stash will ignore any characters after the .git text.

      For example, for a repository rep_1 within the project PROJECT_1, the standard URL http://localhost:7990/stash/git/PROJECT_1/rep_1.git will work as expected, but also any variation of the URL with an additional suffix:

      $ git clone http://admin@localhost:7990/stash/git/PROJECT_1/rep_1.git
      Cloning into 'rep_1'...
      Password for 'http://admin@localhost:7990': 
      remote: Counting objects: 79, done.
      remote: Compressing objects: 100% (47/47), done.
      remote: Total 79 (delta 14), reused 0 (delta 0)
      Unpacking objects: 100% (79/79), done.
      
      $ git clone http://admin@localhost:7990/stash/git/PROJECT_1/rep_1.gittest
      Cloning into 'rep_1.gittest'...
      Password for 'http://admin@localhost:7990': 
      remote: Counting objects: 79, done.
      remote: Compressing objects: 100% (47/47), done.
      remote: Total 79 (delta 14), reused 0 (delta 0)
      Unpacking objects: 100% (79/79), done.
      
      $ git clone http://admin@localhost:7990/stash/git/PROJECT_1/rep_1.gittralala
      Cloning into 'rep_1.gittralala'...
      Password for 'http://admin@localhost:7990': 
      remote: Counting objects: 79, done.
      remote: Compressing objects: 100% (47/47), done.
      remote: Total 79 (delta 14), reused 0 (delta 0)
      Unpacking objects: 100% (79/79), done.
      

            Assignee:
            Pierre-Etienne Poirot (Inactive)
            Reporter:
            Pierre-Etienne Poirot (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: