Module and theme in one directory? For my project, I have a custom module, a features module and a custom theme. I want to keep all in a single Git-Repository.

The problem is: modules need to be in sites/all/modules, themes in sites/all/themes.

I know, I could bundle both in a profile. But I am already using a special profile. And as far as I know, there is no way to inherit a profile.

And yes, I know I could use symlinks. But they tend to create issues with path structures.

So is there another, maybe a "Drupal" way to bundle modules and themes in one directory?
Thanks to the suggestion of @kenorb, I have found a good way to solve this:

I init the git repository in drupal/, and I put  only the following line into .gitignore:

*


Then, I add (by force) my custom module and theme folders: 

$ git add -f sites/all/modules/custom
$ git add -f sites/all/themes/custom


With this, my repo still contains only my code and no Drupal modules. And this allows me even to track also my .htaccess, with:

$ git add -f .htaccess