Map<String, Object> revisionMap = getMapFor(goPluginApiRequest, "revision");
String revision = (String) revisionMap.get("revision");
LOGGER.warn("destination: " + destinationFolder + ". commit: " + revision);
try {
GitHelper git = HelperFactory.git(gitConfig, new File(destinationFolder));
<BUG>git.cloneOrFetch(PR_FETCH_REFSPEC);
git.resetHard(revision);</BUG>
Map<String, Object> response = new HashMap<String, Object>();
response.put("status", "success");
response.put("messages", Arrays.asList(String.format("Checked out to revision %s", revision)));

Map<String, Object> revisionMap = getMapFor(goPluginApiRequest, "revision");
String revision = (String) revisionMap.get("revision");
LOGGER.warn("destination: " + destinationFolder + ". commit: " + revision);
try {
GitHelper git = HelperFactory.git(gitConfig, new File(destinationFolder));
git.cloneOrFetch(provider.getRefSpec());
git.resetHard(revision);
Map<String, Object> response = new HashMap<String, Object>();
response.put("status", "success");
response.put("messages", Arrays.asList(String.format("Checked out to revision %s", revision)));
