This commit is contained in:
Liang Ding 2015-03-20 17:41:49 +08:00
parent ec22bcd3ad
commit af808c2024
1 changed files with 6 additions and 1 deletions

View File

@ -121,7 +121,12 @@ func CloneHandler(w http.ResponseWriter, r *http.Request) {
channelRet["cmd"] = "git clone" channelRet["cmd"] = "git clone"
// read all // read all
buf, _ := ioutil.ReadAll(reader) buf, err := ioutil.ReadAll(reader)
if nil != err {
logger.Warn(err)
// TODO: handle clone error
}
logger.Debugf("User [%s, %s] 's running [git clone] [runningId=%d] has done: %s", username, sid, runningId, string(buf)) logger.Debugf("User [%s, %s] 's running [git clone] [runningId=%d] has done: %s", username, sid, runningId, string(buf))