]> source.dussan.org Git - gitea.git/commit
Fix panic when diff (#9187)
authorLunny Xiao <xiaolunwen@gmail.com>
Thu, 28 Nov 2019 09:05:57 +0000 (17:05 +0800)
committerGitHub <noreply@github.com>
Thu, 28 Nov 2019 09:05:57 +0000 (17:05 +0800)
commitef9a0370ca71694c38cd8c30a3837ee3125974ba
treef61133a81538253a4dfabeaf88e1069f74b5b902
parent6e578dd0c9db5284b470503376d97757c743b4c1
Fix panic when diff (#9187)

* fix panic when diff

* improve code
26 files changed:
services/gitdiff/gitdiff.go
services/gitdiff/gitdiff_test.go
services/gitdiff/testdata/academic-module/HEAD [new file with mode: 0644]
services/gitdiff/testdata/academic-module/config [new file with mode: 0644]
services/gitdiff/testdata/academic-module/description [new file with mode: 0644]
services/gitdiff/testdata/academic-module/hooks/applypatch-msg.sample [new file with mode: 0755]
services/gitdiff/testdata/academic-module/hooks/commit-msg.sample [new file with mode: 0755]
services/gitdiff/testdata/academic-module/hooks/fsmonitor-watchman.sample [new file with mode: 0755]
services/gitdiff/testdata/academic-module/hooks/post-update.sample [new file with mode: 0755]
services/gitdiff/testdata/academic-module/hooks/pre-applypatch.sample [new file with mode: 0755]
services/gitdiff/testdata/academic-module/hooks/pre-commit.sample [new file with mode: 0755]
services/gitdiff/testdata/academic-module/hooks/pre-push.sample [new file with mode: 0755]
services/gitdiff/testdata/academic-module/hooks/pre-rebase.sample [new file with mode: 0755]
services/gitdiff/testdata/academic-module/hooks/pre-receive.sample [new file with mode: 0755]
services/gitdiff/testdata/academic-module/hooks/prepare-commit-msg.sample [new file with mode: 0755]
services/gitdiff/testdata/academic-module/hooks/update.sample [new file with mode: 0755]
services/gitdiff/testdata/academic-module/index [new file with mode: 0644]
services/gitdiff/testdata/academic-module/info/exclude [new file with mode: 0644]
services/gitdiff/testdata/academic-module/logs/HEAD [new file with mode: 0644]
services/gitdiff/testdata/academic-module/logs/refs/heads/master [new file with mode: 0644]
services/gitdiff/testdata/academic-module/logs/refs/remotes/origin/HEAD [new file with mode: 0644]
services/gitdiff/testdata/academic-module/objects/pack/pack-597efbc3613c7ba790e33b178fd9fc1fe17b4245.idx [new file with mode: 0644]
services/gitdiff/testdata/academic-module/objects/pack/pack-597efbc3613c7ba790e33b178fd9fc1fe17b4245.pack [new file with mode: 0644]
services/gitdiff/testdata/academic-module/packed-refs [new file with mode: 0644]
services/gitdiff/testdata/academic-module/refs/heads/master [new file with mode: 0644]
services/gitdiff/testdata/academic-module/refs/remotes/origin/HEAD [new file with mode: 0644]