Not finding git command?
Added by Anonymous over 13 years ago
So I'm using: https://github.com/ericpaulbishop/redmine_git_hosting
And here is part of my init script and it's output:
echo "$(git --version)"
git version 1.7.4.1
But in my repo settings I have:
(!) Command: git, Version:
Image: http://grab.by/a5KP
Full init:
# kconfig: - 50 3 # description: Redmine Passenger Dameon # proccessname: redmine-passenger ### BEGIN INIT INFO # Provides: myapp passenger in standalone # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # X-Interactive: true # Short-Description: Start/stop de-fra.com web site ### END INIT INFO PATH=$PATH:/usr/local/bin/ GEM_HOME=/usr/local/rvm/gems/ruby-1.8.7-p334 RVM=/usr/local/rvm/bin/rvm PASSENGER=/usr/local/rvm/gems/ruby-1.8.7-p334/bin/passenger ENVIRONMENT=production SOCKET=/tmp/redmine.socket APP="/home/www/redmine.el-abid.com/rails_app" USER=www RUBY_VERSION=1.8.7 SET_PATH="cd $APP; $RVM use $RUBY_VERSION; export GEM_HOME=$GEM_HOME" CMD="$SET_PATH; $PASSENGER start --socket $SOCKET -e $ENVIRONMENT -d" case "$1" in start) echo "Starting redmine passenger" echo "Access to git?" echo "$(git --version)" echo $CMD su $USER -c "$CMD" ;; stop) echo "Stopping redmine passenger" cd $APP $PASSENGER stop -p $PORT ;; *) echo "Usage: $0 start|stop" >&2 exit 3 ;; esac
Full output:
[root@el-abid ~]# /etc/init.d/redmine start Starting redmine passenger Access to git? git version 1.7.4.1 cd /home/www/redmine.el-abid.com/rails_app; /usr/local/rvm/bin/rvm use 1.8.7; export GEM_HOME=/usr/local/rvm/gems/ruby-1.8.7-p334; /usr/local/rvm/gems/ruby-1.8.7-p334/bin/passenger start --socket /tmp/redmine.socket -e production -d Using /usr/local/rvm/gems/ruby-1.8.7-p334 =============== Phusion Passenger Standalone web server started =============== PID file: /home/www/redmine.el-abid.com/rails_app/tmp/pids/passenger.pid Log file: /home/www/redmine.el-abid.com/rails_app/log/passenger.log Environment: production Accessible via: /tmp/redmine.socket Serving in the background as a daemon. ===============================================================================
Replies (4)
RE: Not finding git command? - Added by Anonymous over 13 years ago
Just found this in my logs
bad command: git "--version" "--no-color"
which would probably be this http://www.redmine.org/projects/redmine/repository/entry/trunk/lib/redmine/scm/adapters/git_adapter.rb#L59
RE: Not finding git command? - Added by Jeffrey Jones over 13 years ago
Just ran into the same sort of problem in redmine-trunk
Command: git | Version:
with a ! iron to the left is displayed when I try and add a git repository.
when I try on the command line
git --version --no-color git version 1.7.2 which git /usr/local/bin/git
from script/console
>> `git --version --no-color` => "git version 1.7.2\n"
RE: Not finding git command? - Added by Jeffrey Jones over 13 years ago
And just noticed that I have lost access to all git repos which were working without trouble in the last stable release. I think this should be investigated before 1.2.0 is released
RE: Not finding git command? - Added by Jeffrey Jones over 13 years ago
Updating configuration.yml with the absolute path to git executable fixed this issue for me (/usr/local/bin/git).