added support for adding repo to a directory