aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/repo_compare_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-12-23 22:29:34 -0800
committerGitHub <noreply@github.com>2024-12-24 14:29:34 +0800
commitb8b690feb958dffb51eb1d5fc86c16996ba830e1 (patch)
treef73b302eb4590c03ef0dd854ead8253449c77efd /modules/git/repo_compare_test.go
parent6d5aa9218e78ac500b21fb3f36674284118a7c78 (diff)
downloadgitea-b8b690feb958dffb51eb1d5fc86c16996ba830e1.tar.gz
gitea-b8b690feb958dffb51eb1d5fc86c16996ba830e1.zip
Refactor getpatch/getdiff functions and remove unnecessary fallback (#32817)
Extract from #32786 `git diff a..b` is equal to `git diff a b` which is different from `git diff a...b`. For pull request, we should always --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/git/repo_compare_test.go')
-rw-r--r--modules/git/repo_compare_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_compare_test.go b/modules/git/repo_compare_test.go
index 454ed6b9f8..25ee4c5198 100644
--- a/modules/git/repo_compare_test.go
+++ b/modules/git/repo_compare_test.go
@@ -28,7 +28,7 @@ func TestGetFormatPatch(t *testing.T) {
defer repo.Close()
rd := &bytes.Buffer{}
- err = repo.GetPatch("8d92fc95^", "8d92fc95", rd)
+ err = repo.GetPatch("8d92fc95^...8d92fc95", rd)
if err != nil {
assert.NoError(t, err)
return