0

I have a folder called modules in my project (a Zend 1.12.3 project). The path is application\modules. Everything in the application directory commits just fine and shows up in Git, apart from the modules directory. It's not ignored by the project's .gitignore file:

public/styles/.sass-cache

Nor is it being ignored by my global .gitignore file:

.idea
app/logs/*
web/uploads/*
workspace.xml

Does anyone have any idea why the modules folder isn't showing up in the directory? This is really annoying since modules are an integral part of Zend...

thomastuts
  • 3,459
  • 3
  • 20
  • 28
  • git does not add empty folders – u6f6o Aug 15 '13 at 15:34
  • have a look on this as well http://stackoverflow.com/questions/115983/how-do-i-add-an-empty-directory-to-a-git-repository – u6f6o Aug 15 '13 at 15:36
  • Yeah, I just checked and the generated module indeed only has empty directories so far. Adding files to it makes it show up in Git. Thanks! – thomastuts Aug 15 '13 at 15:36

1 Answers1

1

Easy solution: the Api module that was generated had the directory structure but no files in it yet, which caused it to not get picked up by Git.

thomastuts
  • 3,459
  • 3
  • 20
  • 28