Skip to content

Stripping .git from the module name #48

Open

Description

@God-damnit-all

(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.

Activity

  1. changed the title [-]Stripping .git from the [/-] [+]Stripping .git from the module name[/+] on Sep 17, 2021
  2. God-damnit-all commented on Sep 17, 2021

    @God-damnit-all
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions