We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb195ff commit 05361efCopy full SHA for 05361ef
1 file changed
bin/stashcp
@@ -64,11 +64,13 @@ def doWriteBack(source, destination):
64
if 'http_proxy' in os.environ:
65
del os.environ['http_proxy']
66
67
+ logging.debug("curl command: %s" % command)
68
curl=subprocess.Popen([command ],shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
69
(stdout, stderr) = curl.communicate()
70
curl_exit=curl.returncode
71
if statinfo.st_size == 0 and curl_exit == 28:
72
logging.debug("Got curl exit code 28, but that's ok for zero-length files. This doesn't capture connection timeouts")
73
+ curl_exit = 0
74
elif curl_exit != 0:
75
logging.error(stdout)
76
logging.error(stderr)
0 commit comments