Fixed a bug that subdirectory gitignore dosen't work with specified path.
Removed unnecessary gitignore depth parameter.