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

Re: problem with branches

From
ACAlf Clement <alf.clement@gmail.com>
Date
Jun 2, 2008, 13:59 UTC
Message-ID
<556d90580806020659i3cd6ef1dt86bbd4e332f92ca0@mail.gmail.com>
Hi all,

after debugging quite some while, I found out that the problems comes from hooks/update script.

It checks for the project description - which I didn't set, default was present - and complains. The script gets the correct paths but the description is empty, even if I change the description file.

I am working on some 1.5.5.1 version of git.

Would be nice to transport the messages from server to the client to get better hints what goes wrong...

CU, Alf

I created 4 branches with a remote repository on a server.
I've changed some files locally, committed and now try to push... but
it fails with hook declined.
Now the status:
$ git pull -v
From git://XXXX/YY
 = [up to date]      TEST       -> origin/TEST
 = [up to date]      master     -> origin/master
 = [up to date]      v1.03      -> origin/v1.03
 = [up to date]      v2.07      -> origin/v2.07
 = [up to date]      v3.11      -> origin/v3.11
Already up-to-date.
$ git push -v
Pushing to git://XXXX/YY
GIT TRANPORT
Looking up XXXX ... done.
Counting objects: 31, done.
Compressing objects: 100% (14/14), done.
Writing objects: 100% (21/21), 2.02 KiB, done.
Total 21 (delta 8), reused 0 (delta 0)
To git://XXXX/YY
 = [up to date]      TEST -> TEST
 ! [remote rejected] master -> master (hook declined)
 ! [remote rejected] v3.11 -> v3.11 (hook declined)
error: failed to push some refs to 'git://XXXX/YY'

I also get a warning when moving between branches: $ git checkout v3.11 Switched to branch "v3.11" Your branch is ahead of the tracked remote branch 'origin/v3.11' by 1 commit.

$ git checkout master Switched to branch "master" Your branch is ahead of the tracked remote branch 'origin/master' by 2 commits.

Any ideas how to recover from here? The git-daemon seems to run fine, as I can commit and push from another test project. It would be nice if there were more clean failure messages from the daemon...(Enhancement)

Thanks, Alf

Message 1 of 1 in “Re: problem with branches”
  1. Alf ClementJun 2, 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.