Found it!
In the older repositories there is a hook directory, In the new ones there is a
link. So I tested to remove the directory and create a link instead and it
works...
-------------------------------------------------------------
Hmm this does not seem to happen in new repositories... I have imported stuff
from an older server...
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3) Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3) Writing objects: 100% (3/3), 290 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
/usr/lib/ruby/1.8/yaml.rb:143:in `initialize': No such file or directory -
./hooks/../../config/gitorious.yml (Errno::ENOENT)
from /usr/lib/ruby/1.8/yaml.rb:143:in `open'
from /usr/lib/ruby/1.8/yaml.rb:143:in `load_file'
from ./hooks/messaging.rb:35:in `stomp_server_and_port'
from ./hooks/messaging.rb:29:in `connect'
from ./hooks/messaging.rb:42:in `post_message'
from hooks/post-receive:42
=> Syncing Gitorious... error: hooks/post-receive exited with error code 1
Pushing to
[email protected]:tex_martin_planning/tex_martin_planning.git
To [email protected]:tex_martin_planning/tex_martin_planning.git
242fe6f..bb6f3d6 master -> master
updating local tracking ref 'refs/remotes/origin/master'
==========================
New repo works!
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2) Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3) Writing objects: 100% (3/3), 279 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
=> Syncing Gitorious... [OK]
Pushing to [email protected]:test511/test511.git
To [email protected]:test511/test511.git
c579e16..c4c8d70 master -> master
updating local tracking ref 'refs/remotes/origin/master'
Best regards
Martin Pettersson
ETA (Thailand) Co., Ltd.
Assembly Division
Technical Expert 1
439 Bangplee Industrial Estate II
Mu 17 Bangsaothong
Amphoe Bangsaothong
Samutprakan 10540
THAILAND
Phone: 2-315-3161 [Ext.: 2267]
Fax: 2-315-3160
mailto: [email protected]
www.eta.ch
"Freedom is the issue, the whole issue, and the only issue."
RMS
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Pettersson, Martin
Sent: Monday, January 11, 2010 11:27 AM
To: [email protected]
Subject: RE: [gitorious] Problems with refs/merge-requests/1
Thanks a lot!
Now everything works I think...
Best regards
Martin Pettersson
ETA (Thailand) Co., Ltd.
Assembly Division
Technical Expert 1
439 Bangplee Industrial Estate II
Mu 17 Bangsaothong
Amphoe Bangsaothong
Samutprakan 10540
THAILAND
Phone: 2-315-3161 [Ext.: 2267]
Fax: 2-315-3160
mailto: [email protected]
www.eta.ch
"Freedom is the issue, the whole issue, and the only issue."
RMS
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Johan Sørensen
Sent: Friday, January 08, 2010 4:38 PM
To: [email protected]
Subject: Re: [gitorious] Problems with refs/merge-requests/1
On Fri, Jan 8, 2010 at 7:05 AM, Pettersson, Martin
<[email protected]> wrote:
> I cannot pull merge requests from my server:
>
>
> $ git pull git://git.myserver.com/testmp/testmp.git refs/merge-requests/1
> fatal: Couldn't find remote ref refs/merge-requests/1
>
> If I try to update the merge request I get this:
> pette...@etath-wwn097 ~/Desktop/martins-test (master)
> $ git push [email protected]:testmp/testmp.git
> master:refs/merge-requests/1
> original_command: "git-receive-pack 'testmp/testmp.git'"
> user: "martin"
> git-shell -c "git-receive-pack
> '/home/git/repositories/c8b/542/4f962a1a21f42a181b217b66a8086d94a9.git'"
> Counting objects: 5, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (2/2), done.
> Writing objects: 100% (3/3), 273 bytes, done.
> Total 3 (delta 1), reused 0 (delta 0)
> *** Update hook: unknown type of update to ref refs/merge-requests/1 of type
> commit
> error: hooks/update exited with error code 1
This is coming from data/hooks/update which is the hooks that are
symlinked into $repo_dir/hooks. The update hook is the standard update
hook from the git distro, however you shouldn't make it executable
unless you really want to run it, the only hooks required for
gitorious to work are post-receive, post-update (if you need http
cloning) & pre-receive.
> error: hook declined to update refs/merge-requests/1
> To [email protected]:testmp/testmp.git
> ! [remote rejected] master -> refs/merge-requests/1 (hook declined)
> error: failed to push some refs to '[email protected]:testmp/testmp.git'
>
> The list of "Commits that would be merged:" is also empty...
>
> All help appreciated.
> Thanks for a great piece of software!
>
> Best regards
>
> Martin Pettersson
>
> ETA (Thailand) Co., Ltd.
> Assembly Division
> Technical Expert 1
>
> 439 Bangplee Industrial Estate II
> Mu 17 Bangsaothong
> Amphoe Bangsaothong
> Samutprakan 10540
> THAILAND
>
> Phone: 2-315-3161 [Ext.: 2267]
> Fax: 2-315-3160
>
> mailto: [email protected]
> www.eta.ch
>
> "Freedom is the issue, the whole issue, and the only issue."
>
> RMS
>
>
> ************************************************************************************
> This e-mail message is intended only for the addressee(s) and contains
> information which may be confidential. If you are not the intended
> recipient please do not read, save, forward, disclose or copy the contents
> of this e-mail. If this e-mail has been sent to you in error, please delete
> this
> e-mail and any copies or links to this e-mail completely and immediately
> from your system. We also like to inform you that communication via e-mail
> over the Internet is insecure because third parties may have the possibility
> to access and manipulate e-mails.
>
> Any views expressed in this message are those of the individual sender,
> except where the sender specifically states them to be the views of
> The Swatch Group Ltd.
> ************************************************************************************
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
>
************************************************************************************
This e-mail message is intended only for the addressee(s) and contains
information which may be confidential. If you are not the intended
recipient please do not read, save, forward, disclose or copy the contents
of this e-mail. If this e-mail has been sent to you in error, please delete
this
e-mail and any copies or links to this e-mail completely and immediately
from your system. We also like to inform you that communication via e-mail
over the Internet is insecure because third parties may have the possibility
to access and manipulate e-mails.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
The Swatch Group Ltd.
************************************************************************************
************************************************************************************
This e-mail message is intended only for the addressee(s) and contains
information which may be confidential. If you are not the intended
recipient please do not read, save, forward, disclose or copy the contents
of this e-mail. If this e-mail has been sent to you in error, please delete
this
e-mail and any copies or links to this e-mail completely and immediately
from your system. We also like to inform you that communication via e-mail
over the Internet is insecure because third parties may have the possibility
to access and manipulate e-mails.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
The Swatch Group Ltd.
************************************************************************************
************************************************************************************
This e-mail message is intended only for the addressee(s) and contains
information which may be confidential. If you are not the intended
recipient please do not read, save, forward, disclose or copy the contents
of this e-mail. If this e-mail has been sent to you in error, please delete
this
e-mail and any copies or links to this e-mail completely and immediately
from your system. We also like to inform you that communication via e-mail
over the Internet is insecure because third parties may have the possibility
to access and manipulate e-mails.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
The Swatch Group Ltd.
************************************************************************************
************************************************************************************
This e-mail message is intended only for the addressee(s) and contains
information which may be confidential. If you are not the intended
recipient please do not read, save, forward, disclose or copy the contents
of this e-mail. If this e-mail has been sent to you in error, please delete
this
e-mail and any copies or links to this e-mail completely and immediately
from your system. We also like to inform you that communication via e-mail
over the Internet is insecure because third parties may have the possibility
to access and manipulate e-mails.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
The Swatch Group Ltd.
************************************************************************************
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]