slene 11 rokov pred
rodič
commit
16cb1e974c
2 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  1. 0 1
      models/git.go
  2. 1 1
      routers/repo/commit.go

+ 0 - 1
models/git.go

@@ -244,7 +244,6 @@ func GetCommitsByCommitId(userName, repoName, commitId string) (*list.List, erro
 	if err != nil {
 		return nil, err
 	}
-	fmt.Println(userName, repoName, commitId)
 	r, err := repo.LookupReference(commitId)
 	if err != nil {
 		return nil, err

+ 1 - 1
routers/repo/commit.go

@@ -37,7 +37,7 @@ func Commits(ctx *middleware.Context, params martini.Params) {
 	}
 
 	if err != nil {
-		ctx.Handle(404, "repo.Commits", nil)
+		ctx.Handle(404, "repo.Commits", err)
 		return
 	}