Giter Site home page Giter Site logo

Comments (7)

s0undt3ch avatar s0undt3ch commented on July 23, 2024

And I'm still getting some:

fatal: /usr/lib/git-core/git-pull cannot be used without a working tree.

Didn't you addressed these issues?

from redmine_git_hosting.

s0undt3ch avatar s0undt3ch commented on July 23, 2024

Also testes with a parent'less test project, same non existing hook issue.

from redmine_git_hosting.

ericpaulbishop avatar ericpaulbishop commented on July 23, 2024

Is this still broken after merging your latest fix (fixing the pull => fetch, merge in the second location) ? Sorry I missed it in that second (more important) spot the first time around.

from redmine_git_hosting.

s0undt3ch avatar s0undt3ch commented on July 23, 2024

yes, notice the following:

www-data@ubxenweb:~$ sudo -u www-data ruby /srv/chili/projects/chiliproject/script/runner -e production "print \\\"good\\\""
Sorry, user www-data is not allowed to execute '/usr/bin/ruby /srv/chili/projects/chiliproject/script/runner -e production print \"good\"' as www-data on ubxenweb.ufsoft.org.

:)

from redmine_git_hosting.

s0undt3ch avatar s0undt3ch commented on July 23, 2024

The user running is already the web user, do you really want to sudo to him? specially since on current docs, the web user should only be allowed to sudo to the git user.

from redmine_git_hosting.

ericpaulbishop avatar ericpaulbishop commented on July 23, 2024

That command should be getting run as the git user -- it's a test
whether the git user is correctly configured to run commands as the
www-data user. The www-data user uses the run_as_git_user command to
run sudo BACK to the www-data user. I suppose I could just remove the
test, since current configuration with sudo requires that git
repos/web server be in the same box, but previous ssh configuration
allowed the case where they were not (hence the reason for
testing...).

One reason I've left the test there is as a general test of whether
the run_as_git_user command is working properly -- I had some problems
until I realized that there are different versions of sudo that
actually behave differently (see my commits yesterday). However,
since I've fixed that it seems to be working fine for me, so I'm not
sure why you're having problems. If you comment out the test in the
git_hosting.rb file and just let the commands that set the post-update
hook run do those get called (and the hook set up) properly?

Eric

On Tue, Jul 12, 2011 at 10:16 AM, s0undt3ch
[email protected]
wrote:

The user running is already the web user, do you really want to sudo to him? specially since on current docs, the web user should only be allowed to sudo to the git user.

Reply to this email directly or view it on GitHub:
#30 (comment)

from redmine_git_hosting.

s0undt3ch avatar s0undt3ch commented on July 23, 2024

#32 fixes this ticket.

from redmine_git_hosting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.