git/list[1] front-page[2] threads[3] people[4] search[5] about
 

error: hook declined to update refs/heads/master

From
JBJonathan Biolaz <jonathan.biolaz@sikatizen.com>
Date
Jul 21, 2008, 09:34 UTC
Message-ID
<80F1AC38-8A10-4184-BBFB-870399DE9A3A@sikatizen.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
Next: Johannes Schindelin
Message 1 of 4 in “error: hook declined to update refs/heads/master”
  1. Jonathan BiolazJul 21, 2008
  2. Johannes SchindelinJul 21, 2008
  3. Jonathan BiolazJul 21, 2008
  4. Dmitry PotapovJul 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.