rcbops / rpc_differ

Find differences between Rackspace Private Cloud releases
Apache License 2.0
1 stars 7 forks source link

RE-1190 Prepend origin remote for PR refs #18

Closed odyssey4me closed 6 years ago

odyssey4me commented 6 years ago

Given that rpc_differ is used in PR's and the ref given is not strictly a SHA, the current commit validation fails.

In this patch we create a new function to validate/modify the commit given, and re-arrange the repo preparation to ensure that the commits are adjusted at the top of the process and fed all the way down the chain.

Initially we try the ref and if it fails, we prepend the ref with the remote 'origin' and try it again.