#1714  Incorrect clone URL when project name ends with ".git"
Released
Liam Foot opened 4 months 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 3 months 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' 3 months ago
Previous Value Current Value
Open
Closed
OneDev commented 3 months ago

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

Referenced from commit 3 months ago
OneDev changed state to 'Released' 3 months ago
Previous Value Current Value
Closed
Released
OneDev commented 3 months ago

State changed as build #4500 is successful

issue 1 of 1
Type
Bug
Priority
Minor
Assignee
Affected Versions
9.5.0
Labels
No labels
Issue Votes (0)
Watchers (4)
Reference
onedev/server#1714
Please wait...
Page is in error, reload to recover