downloadGitRepo
Clone or update a git repository.
Clones with --depth 1 for the specified branch. target supports {hash}; stale contents are reset when the repository was not modified. Returns { downloadType: "git", contentsDir, hash }.
ifModifiedSince can be a hash, true to read the hash from the existing clone, or a previous result object. The target directory is not checked for the correct remote or branch, so do not reuse it for different repositories or branches.