Bug 429641

Summary: the generated git folder is not named/parsed correctly
Product: [Applications] kdevelop Reporter: Ezike Ebuka <yerimyah1>
Component: VCS: GitAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.6.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ezike Ebuka 2020-11-25 12:53:36 UTC
SUMMARY
when you fetch a project from kdevelop it does not parse the name of the folder from git correctly, for example you clone something like http://www.example.com/merchant.git  the generated folder is called "merchant.git" instead of "merchant" 

additional info below 

STEPS TO REPRODUCE
1. fetch a project 
2. enter a url https://github.com/Luwx/Lightly.git
3. and get project  

OBSERVED RESULT

the workingDir text box is adds a folder name called "Lightly.git" 


EXPECTED RESULT
the workingDir text box is adds a folder name called "Lightly" with no .git extension on the folder 

SOFTWARE/OS VERSIONS 
Linux/KDE Plasma: 5.20.3
(available in About System)
KDE Plasma Version: 5.76.0
KDE Frameworks Version: 
Qt Version: 5.15.1

ADDITIONAL INFORMATION
the parsing problem is probably in 
kdevelop/kdevplatform/shell/projectsourcepage.cpp

line 262 

probable fix  
>       QString projectName = m_locationWidget->projectName();
>        projectName = projectName.left(projectName.lastIndexOf(QStringLiteral(".")));
>       QUrl current = QUrl::fromUserInput(currentUrl + projectName);