Package gitutil implements an easy way to update a git repository to a local temporary directory.
ErrFailedClone is returned when a git clone is unsuccessful.
ErrFailedPull is returned when a git pull is unsuccessful.
ErrFailedRevParse is returned when a git rev-parse is unsuccessful.
CloneOrPull performs a git pull if there is a git repository located at repoPath. Otherwise, it performs a git clone to that path.
If repoPath is left empty, a temporary directory is generated with the provided prefix and returned.