]> source.dussan.org Git - gitea.git/commit
Fix webhook commits wrong hash on HEAD reset (#16283)
authorKN4CK3R <admin@oldschoolhack.me>
Wed, 30 Jun 2021 17:49:06 +0000 (19:49 +0200)
committerGitHub <noreply@github.com>
Wed, 30 Jun 2021 17:49:06 +0000 (19:49 +0200)
commit7d70a6eff8a8fb03f02c606f5dcacccb9c1cab47
tree92e9c47135bec913c2da42f3325540235fc979a5
parent66bf74d1b924a91c279d3c68cb01d038300b551a
Fix webhook commits wrong hash on HEAD reset (#16283)

Use `..` instead of `...` with `rev-list`. In combination with #16282 the receiver can get the correct commit. The behaviour is now like Github.

fixes #11802
16 files changed:
modules/git/repo_commit.go
modules/git/repo_commit_test.go
modules/git/tests/repos/repo4_commitsbetween/HEAD [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/config [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/logs/HEAD [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/logs/refs/heads/main [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/objects/27/734c860ab19650d48e71f9f12d9bd194ed82ea [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/objects/56/a6051ca2b02b04ef92d5150c9ef600403cb1de [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/objects/78/a445db1eac62fe15e624e1137965969addf344 [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/objects/a7/8e5638b66ccfe7e1b4689d3d5684e42c97d7ca [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/objects/ad/74ceca1b8fde10c7d933bd2e56d347dddb4ab5 [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/objects/b5/d8dd0ddd9d8d752bb47b5f781f09f478316098 [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/objects/d8/263ee9860594d2806b0dfd1bfd17528b0ba2a4 [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/objects/e2/3cc6a008501f1491b0480cedaef160e41cf684 [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/objects/fd/c1b615bdcff0f0658b216df0c9209e5ecb7c78 [new file with mode: 0644]
modules/git/tests/repos/repo4_commitsbetween/refs/heads/main [new file with mode: 0644]