modgit icon indicating copy to clipboard operation
modgit copied to clipboard

Nested directories not copied correctly when the source in modman ends in a glob

Open thizzle opened this issue 13 years ago • 0 comments

When a module has a modman file with a glob source pattern (such as one/*), the directory structure inside is not copied to the target correctly.

Please refer to this demo project I've setup: https://github.com/thizzle/modgit-copyissue-demo The modman file in that module has a single line: one/* one/

I would expect the file one/two/file.txt to be copied to one/two/file.txt in my project after cloning this module with modgit. Instead, the directory structure inside the one directory is flattened so that the file is copied to one/file.txt.

Tharsan

thizzle avatar Dec 29 '12 23:12 thizzle