On Wed, Mar 30, 2011 at 9:27 AM, Mathieu Malaterre <mathieu.malaterre@xxxxxxxxx> wrote: > 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@xxxxxxxxxxxxxxxxxxxxxxxx/gitroot/gdcm/gdcm.old > Â! [remote rejected] master -> master (pre-receive hook declined) > error: failed to push some refs to > 'ssh://malat@xxxxxxxxxxxxxxxxxxxxxxxx/gitroot/gdcm/gdcm.old' > > I tried with something as simple as : > > % cat pre-receive > #!/usr/bin/ruby > % which ruby > /usr/bin/ruby Check that hooks/pre-receive is executable? (chmod +x) -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html