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

4 messages from 2008-07-21 to 2008-07-21. Participants: Jonathan Biolaz, Johannes Schindelin, Dmitry Potapov.
Thread: https://gitlist.dev/t/14564

## Jonathan Biolaz, 2008-07-21 09:34

Subject: error: hook declined to update refs/heads/master
Message-ID: <80F1AC38-8A10-4184-BBFB-870399DE9A3A@sikatizen.com>
URL: https://gitlist.dev/e/80F1AC38-8A10-4184-BBFB-870399DE9A3A%40sikatizen.com

```
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, 2008-07-21 09:54

Subject: Re: error: hook declined to update refs/heads/master
Message-ID: <alpine.DEB.1.00.0807211153340.3305@eeepc-johanness>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0807211153340.3305%40eeepc-johanness
In-Reply-To: <80F1AC38-8A10-4184-BBFB-870399DE9A3A@sikatizen.com>

```
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.

Hth,
Dscho

```

## Jonathan Biolaz, 2008-07-21 11:33

Subject: Re: error: hook declined to update refs/heads/master
Message-ID: <33E8E17B-D34A-4035-945A-CDB8A786A975@sikatizen.com>
URL: https://gitlist.dev/e/33E8E17B-D34A-4035-945A-CDB8A786A975%40sikatizen.com
In-Reply-To: <alpine.DEB.1.00.0807211153340.3305@eeepc-johanness>

```


> 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, 2008-07-21 13:24

Subject: Re: error: hook declined to update refs/heads/master
Message-ID: <37fcd2780807210624m4debee4en2dff4ab6bac0917d@mail.gmail.com>
URL: https://gitlist.dev/e/37fcd2780807210624m4debee4en2dff4ab6bac0917d%40mail.gmail.com
In-Reply-To: <33E8E17B-D34A-4035-945A-CDB8A786A975@sikatizen.com>

```
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

```
