Incorrect clone URL when project name ends with ".git" (OD-1714)
Liam Foot opened 2 years ago

I imported projects from a URL, and the project names automatically ended with ".git".

E.g. a project would be named "Project.git".

The project clone URL was then listed as e.g. "https://my.domain.com/Project.git".

When running the command "git clone https://my.domain.com/Project.git", it returns an error stating "Unable to find project 'Project'", status code 500. It looks for a project named "Project", when the project is instead named "Project.git".

The solution is to append another ".git" to the clone URL, or to rename the project from "Project.git" to "Project", in which case OneDev shows the correct clone URL.

  • shadu commented 2 years ago

    Can confirm, just had this problem with a project as well.

    Luckily I had the option of renaming the project and thus removing the .git part from it's name. But in cases where the user can't change this a fix would be needed.

  • OneDev changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 2 years ago

    State changed as code fixing the issue is committed (fe89f4a9)

  • OneDev changed state to 'Released' 2 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 2 years ago

    State changed as build #4500 is successful

issue 1/1
Type
Bug
Priority
Minor
Assignee
Affected Versions
9.5.0
Labels
No labels
Issue Votes (0)
Watchers (4)
Reference
OD-1714
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover