# Git push error due to hooks error

2 messages from 2018-05-14 to 2018-05-14. Participants: Barodia, Anjali (Nokia - IN/Noida), Martin Fick.
Thread: https://gitlist.dev/t/48491

## Barodia, Anjali (Nokia - IN/Noida), 2018-05-14 17:32

Subject: Git push error due to hooks error
Message-ID: <AM4PR0701MB21165697A8485CA4B42ADFFB8A9C0@AM4PR0701MB2116.eurprd07.prod.outlook.com>
URL: https://gitlist.dev/e/AM4PR0701MB21165697A8485CA4B42ADFFB8A9C0%40AM4PR0701MB2116.eurprd07.prod.outlook.com

```
Hi Support,


I was trying to push local git to another git on gerrit, but stuck with an hook error.
This is a very large repo and while running the command "git push origin --all"
I am getting this errors:

remote: (W) 92e19d4: too many commit message lines longer than 70 characters; manually wrap lines
remote: (W) de2245b: too many commit message lines longer than 70 characters; manually wrap lines
remote: (W) dc6e982: too many commit message lines longer than 70 characters; manually wrap lines
remote: (W) d2e2efd: too many commit message lines longer than 70 characters; manually wrap lines
remote: error: internal error while processing changes
To ssh_url_path:8282/SI_VF.git
 ! [remote rejected]   master -> master (Error running hook /opt/gerrit/hooks/re    f-update)
error: failed to push some refs to 'ssh_user@url_path:8282/SI_VF.git'

I tried to push after deleting the .git/hooks, but still get the same error.
Please help me in fixing this error.

Thanks with Regards,
Anjali Barodia

```

## Martin Fick, 2018-05-14 17:36

Subject: Re: Git push error due to hooks error
Message-ID: <5444972.XKqSDWe6bT@mfick-lnx>
URL: https://gitlist.dev/e/5444972.XKqSDWe6bT%40mfick-lnx
In-Reply-To: <AM4PR0701MB21165697A8485CA4B42ADFFB8A9C0@AM4PR0701MB2116.eurprd07.prod.outlook.com>

```
On Monday, May 14, 2018 05:32:35 PM Barodia, Anjali wrote:
> I was trying to push local git to another git on gerrit,
> but stuck with an hook error. This is a very large repo
> and while running the command "git push origin --all" I
> am getting this errors:
> 
> remote: (W) 92e19d4: too many commit message lines longer
> than 70 characters; manually wrap lines remote: (W)
> de2245b: too many commit message lines longer than 70
> characters; manually wrap lines remote: (W) dc6e982: too
> many commit message lines longer than 70 characters;
> manually wrap lines remote: (W) d2e2efd: too many commit
> message lines longer than 70 characters; manually wrap
> lines remote: error: internal error while processing
> changes To ssh_url_path:8282/SI_VF.git
>  ! [remote rejected]   master -> master (Error running
> hook /opt/gerrit/hooks/re    f-update) error: failed to
> push some refs to 'ssh_user@url_path:8282/SI_VF.git'


This is standard Gerrit behavior.  For Gerrit questions, 
please post question to:

Repo and Gerrit Discussion <repo-discuss@googlegroups.com>

-Martin

-- 
The Qualcomm Innovation Center, Inc. is a member of Code 
Aurora Forum, hosted by The Linux Foundation


```
