git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* problem with branches
@ 2008-06-02 10:14 Alf Clement
  2008-06-02 17:23 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Alf Clement @ 2008-06-02 10:14 UTC (permalink / raw)
  To: git

Hi all,

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem with branches
@ 2008-06-02 13:59 Alf Clement
  0 siblings, 0 replies; 3+ messages in thread
From: Alf Clement @ 2008-06-02 13:59 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem with branches
  2008-06-02 10:14 Alf Clement
@ 2008-06-02 17:23 ` Jeff King
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff King @ 2008-06-02 17:23 UTC (permalink / raw)
  To: Alf Clement; +Cc: git

On Mon, Jun 02, 2008 at 12:14:07PM +0200, Alf Clement wrote:

>  = [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'

OK. So your "update" hook returned failure. What's in the remote's
.git/hooks/update?

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

This is fine; it's just reminding you that you have commits that could
be pushed.

-Peff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-02 17:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-02 13:59 problem with branches Alf Clement
  -- strict thread matches above, loose matches on Subject: below --
2008-06-02 10:14 Alf Clement
2008-06-02 17:23 ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).