detecting an existing checkout in the current directory
optional specifying an other repositository to download the code