InstallModuleFromGit icon indicating copy to clipboard operation
InstallModuleFromGit copied to clipboard

Stripping .git from the module name

Open God-damnit-all opened this issue 4 years ago • 1 comments

(Get-GitModule 'https://github.com/riedyw/PoshFunctions.git').Name returns PoshFunctions.git, which means the end of the module path ends as Modules/PoshFunctions.git - however, I'd prefer it to be Modules/PoshFunctions instead.

Since -DestinationPath is only for specifying a root directory, it would be nice if there were an option to manually specify what name I want the module to have and/or an option to strip the .git portion off the folder name.

God-damnit-all avatar Sep 17 '21 21:09 God-damnit-all

I just realized that Get-GitModule 'https://github.com/riedyw/PoshFunctions' works, and returns PoshFunctions. It is a force of habit for me to use the .git URL.

Perhaps stripping the .git from the Name should be the default behavior.

God-damnit-all avatar Sep 17 '21 21:09 God-damnit-all