From 16cb1e974ca2e34384cd7882886f46f860ea5640 Mon Sep 17 00:00:00 2001
From: slene <vslene@gmail.com>
Date: Fri, 28 Mar 2014 00:13:05 +0800
Subject: [PATCH] print err

---
 models/git.go          | 1 -
 routers/repo/commit.go | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/models/git.go b/models/git.go
index 6bae72487..e2ee52083 100644
--- a/models/git.go
+++ b/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
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 11aab67ca..4a126d236 100644
--- a/routers/repo/commit.go
+++ b/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
 	}