Fixed bug related to empty directories in the git project

Signed-off-by: Herbert Rocha <herberthb12@gmail.com>