StreakyCobra / gws

Colorful KISS helper for git workspaces
https://streakycobra.github.io/gws/
MIT License
235 stars 22 forks source link

Repos with common prefix won't work. #20

Closed pulkomandy closed 7 years ago

pulkomandy commented 9 years ago

My layout is:

bar
bar-foo

gws ignores bar-foo because it has "bar" as a prefix. The function remove_prefixed seems to be the problem, as it doesn't check for / just after the prefix. So it excludes more than subdirectories.

StreakyCobra commented 9 years ago

Hi,

Thanks for you contribution!

I was able to reproduce your problem, and indeed the remove_prefixed function is the cause. The fix seems simple but I need to check a little bit more if it will cause any other regressions.

BTW the remove_prefixed function is used only when calling gws init or gws check, not when other gws commands are called. So in the meantime, just add your bar-foo project manually inside the .projects.gws and both repository will be used correctly :smiley: