accounting for explicit code returns by git clone itself
@@ -242,7 +242,10 @@ class Plugin:
# clone repo and build tools
response = subprocess.check_output(shlex.split("git clone --recursive " + repo + " ."), stderr=subprocess.STDOUT, close_fds=True)
-
+ if response not in [0, 128]:
+ self.logger.error("Git was unable to clone: "+str(repo)+" because of error: "+str(response))
+ status = (False, str(response))
+ else:
status = (True, cwd)
except Exception as e:
self.logger.error("clone failed with error: "+str(e))
