git-tar needs to clone with a unique path (including branch) ## Expected Behaviour git-tar should clone to a path like: `/tmp/owner/repo/branch` to avoid conflicts ## Current Behaviour It clones to: ``` func clone(pushEvent sdk.PushEvent) (string, error) { workDir := os.TempDir() destPath := path.Join(workDir, path.Join(pushEvent.Repository.Owner.Login, pushEvent.Repository.Name)) ``` This could lead to conflicts if building two branches on the same OFC installation ## Possible Solution 1) Enhance the path to avoid conflicts. (see: git-tar/function/ops.go) 2) A fix must include a unit test - ideally one which mocks out the exec step to `git clone`.
git-tar needs to clone with a unique path (including branch)
Expected Behaviour
git-tar should clone to a path like:
/tmp/owner/repo/branchto avoid conflictsCurrent Behaviour
It clones to:
This could lead to conflicts if building two branches on the same OFC installation
Possible Solution
git clone.