git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* error: cannot run hooks/pre-receive: No such file or directory
@ 2011-03-30 13:27 Mathieu Malaterre
  2011-03-30 18:35 ` Computer Druid
  2011-03-30 20:04 ` Jeff King
  0 siblings, 2 replies; 4+ messages in thread
From: Mathieu Malaterre @ 2011-03-30 13:27 UTC (permalink / raw)
  To: git

Hi all,

  I am trying to use a ruby script to reject commit with non-linear
history (*). However it keeps failing with the following message:

$ git push
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 304 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
error: cannot run hooks/pre-receive: No such file or directory
To ssh://malat@gdcm.git.sourceforge.net/gitroot/gdcm/gdcm.old
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to
'ssh://malat@gdcm.git.sourceforge.net/gitroot/gdcm/gdcm.old'

I tried with something as simple as :

% cat pre-receive
#!/usr/bin/ruby
% which ruby
/usr/bin/ruby

Do I need to do something special with ruby ?

Thanks,
-- 
Mathieu

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

end of thread, other threads:[~2011-03-31  7:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-30 13:27 error: cannot run hooks/pre-receive: No such file or directory Mathieu Malaterre
2011-03-30 18:35 ` Computer Druid
2011-03-30 20:04 ` Jeff King
2011-03-31  7:20   ` Mathieu Malaterre

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 NNTP newsgroup(s).