threads / discuss / 14564

error: hook declined to update refs/heads/master

Subject: error: hook declined to update refs/heads/master

## tl;dr

4 messages between Jul 21, 2008 and Jul 21, 2008.

replies: 3people: 3as markdown or json

Jonathan Biolaz· Jul 21, 2008, 09:34 UTC · lore
Hye,

I'm trying to make a remote repository on a Mac Osx Server leopard. I tried many methods to create the remote. First one, I clone my local repository with the --bare options, then copy this repo on the server and add the remote to my local repository, Second one, I create an empty bare repository on the server and then I try to push my local repository on it.

Everything I'm doing is given my the same error when I try to push to the server :

$ git push origin master
Counting objects: 1709, done.
Compressing objects: 100% (1523/1523), done.
Writing objects: 100% (1709/1709), 1.95 MiB | 3818 KiB/s, done.
Total 1709 (delta 535), reused 0 (delta 0)
*** Project description file hasn't been set
error: hooks/update exited with error code 1
error: hook declined to update refs/heads/master
To jbiolaz@macpro1.sikalab:/mp1_data/sikatizen/Dev/repo/calame.git
  ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'jbiolaz@macpro1.sikalab:/mp1_data/ 
sikatizen/Dev/repo/calame.git'

I made the same on a linux server ad it's working well (but with another repository)

I don't know what to do to make this working. Also, my server Leopard server is driving me crazy, I have to had for every user a .bashrc which one contain the path to git. I don't find a way to add this for all user !

I hope someone can help me !!
Thanks !!
Jbiolaz
Johannes Schindelin· Jul 21, 2008, 09:54 UTC · re: Jonathan Biolaz · lore

Re: error: hook declined to update refs/heads/master

Hi,
On Mon, 21 Jul 2008, Jonathan Biolaz wrote:
Show 7 quoted lines
> $ git push origin master
> 
> Counting objects: 1709, done.
> Compressing objects: 100% (1523/1523), done.
> Writing objects: 100% (1709/1709), 1.95 MiB | 3818 KiB/s, done.
> Total 1709 (delta 535), reused 0 (delta 0)
> *** Project description file hasn't been set
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> error: hooks/update exited with error code 1
> error: hook declined to update refs/heads/master

Apparently, you have a hook installed on the remote side which checks for a valid description, and refuses even updating refs before you set the description correctly.

Hth, Dscho

Jonathan Biolaz· Jul 21, 2008, 11:33 UTC · re: Johannes Schindelin · lore

Re: error: hook declined to update refs/heads/master

Show 21 quoted lines
> Hi,
>
> On Mon, 21 Jul 2008, Jonathan Biolaz wrote:
>
>> $ git push origin master
>>
>> Counting objects: 1709, done.
>> Compressing objects: 100% (1523/1523), done.
>> Writing objects: 100% (1709/1709), 1.95 MiB | 3818 KiB/s, done.
>> Total 1709 (delta 535), reused 0 (delta 0)
>> *** Project description file hasn't been set
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>> error: hooks/update exited with error code 1
>> error: hook declined to update refs/heads/master
>
> Apparently, you have a hook installed on the remote side which  
> checks for
> a valid description, and refuses even updating refs before you set the
> description correctly.

Ok. So, what's a hook ? and how I set the description ??

Thanks
Dmitry Potapov· Jul 21, 2008, 13:24 UTC · re: Jonathan Biolaz · lore

Re: error: hook declined to update refs/heads/master

On Mon, Jul 21, 2008 at 3:33 PM, Jonathan Biolaz <jonathan.biolaz@sikatizen.com> wrote:

>
> So, what's a hook ?
http://www.kernel.org/pub/software/scm/git/docs/githooks.html
>  and how I set the description ??
By editing .git/description file.
Dmitry

← back to recent threads