markdown: fix treating pure number as SHA1

- Detect non-exist commit and return 404 not 500
This commit is contained in:
Unknwon
2016-08-15 15:27:19 -07:00
parent 6c8fcb3af2
commit 4a46613916
5 changed files with 13 additions and 4 deletions

2
glide.lock generated
View File

@@ -41,7 +41,7 @@ imports:
- name: github.com/gogits/cron
version: 7f3990acf1833faa5ebd0e86f0a4c72a4b5eba3c
- name: github.com/gogits/git-module
version: 31d8d73910d6f9ccb94ba6c17bbd18b1d01492ee
version: 2a820b5471795de4c8b993e15b0ed08155090c6a
- name: github.com/gogits/go-gogs-client
version: e363d3ff8f70d0fe813324eedf228684af41c29c
- name: github.com/issue9/identicon