threads / discuss / 61159

git push error

Subject: git push error

## tl;dr

4 messages between Mar 20, 2024 and Mar 20, 2024.

replies: 3people: 3as markdown or json

jjb8256@sina.com· Mar 20, 2024, 07:17 UTC · lore
Hi:
    git push 时发现如下报错,尝试无法修改,请帮忙,谢谢!
$ git push
Enumerating objects: 9, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 8 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 701 bytes | 233.00 KiB/s, done.
Total 5 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote: The gitlab-shell hooks have been migrated to Gitaly, see https://gitlab.com/gitlab-org/gitaly/issues/1226
To http://10.11.15.10/ks-rd-fw/git-train-2022.git
 ! [remote rejected] develop -> develop (pre-receive hook declined)
error: failed to push some refs to 'http://10.11.15.10/ks-rd-fw/git-train-2022.git'
Kristoffer Haugsbakk· Mar 20, 2024, 08:45 UTC · re: jjb8256@sina.com · lore

Re: git push error

On Wed, Mar 20, 2024, at 08:17, jjb8256@sina.com wrote:
Show 16 quoted lines
> Hi:
>     git push 时发现如下报错,尝试无法修改,请帮忙,谢谢!
>
> $ git push
> Enumerating objects: 9, done.
> Counting objects: 100% (8/8), done.
> Delta compression using up to 8 threads
> Compressing objects: 100% (5/5), done.
> Writing objects: 100% (5/5), 701 bytes | 233.00 KiB/s, done.
> Total 5 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
> remote: The gitlab-shell hooks have been migrated to Gitaly, see
> https://gitlab.com/gitlab-org/gitaly/issues/1226
> To http://10.11.15.10/ks-rd-fw/git-train-2022.git
>  ! [remote rejected] develop -> develop (pre-receive hook declined)
> error: failed to push some refs to
> 'http://10.11.15.10/ks-rd-fw/git-train-2022.git'

The pre-receive hook on the server failed. That means that whatever you pushed is wrong according to that script.

See `man githooks`.

-- Kristoffer

Kristoffer Haugsbakk· Mar 20, 2024, 08:51 UTC · re: Kristoffer Haugsbakk · lore

Re: git push error

On Wed, Mar 20, 2024, at 09:45, Kristoffer Haugsbakk wrote:
Show 12 quoted lines
> On Wed, Mar 20, 2024, at 08:17, jjb8256@sina.com wrote:
>> [snip]
>> https://gitlab.com/gitlab-org/gitaly/issues/1226
>> [snip]
>
> The pre-receive hook on the server failed. That means that whatever you
> pushed is wrong according to that script.
>
> See `man githooks`.
>
> --
> Kristoffer
You should also look at the the message that the remote sent:
    remote: The gitlab-shell hooks have been migrated to Gitaly, see
    https://gitlab.com/gitlab-org/gitaly/issues/1226
rsbecker@nexbridge.com· Mar 20, 2024, 11:52 UTC · re: jjb8256@sina.com · lore

RE: git push error

On Wednesday, March 20, 2024 3:17 AM, jjb8256@sina.com wrote:
Show 14 quoted lines
>    git push 时发现如下报错,尝试无法修改,请帮忙,谢谢!
>
>$ git push
>Enumerating objects: 9, done.
>Counting objects: 100% (8/8), done.
>Delta compression using up to 8 threads
>Compressing objects: 100% (5/5), done.
>Writing objects: 100% (5/5), 701 bytes | 233.00 KiB/s, done.
>Total 5 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
>remote: The gitlab-shell hooks have been migrated to Gitaly, see
>https://gitlab.com/gitlab-org/gitaly/issues/1226
>To http://10.11.15.10/ks-rd-fw/git-train-2022.git
> ! [remote rejected] develop -> develop (pre-receive hook declined)
>error: failed to push some refs to 'http://10.11.15.10/ks-rd-fw/git-train-2022.git'
This looks like a problem with the pre-receive hook on your GitLab installation on the server-side, or that script is rejecting the push. This probably should be referred to the GitLab team for support (possibly at your company).
--Randall

← back to recent threads