File use_correct_ruby.patch of Package gitaly
Index: gitaly/internal/gitaly/rubyserver/rubyserver.go
===================================================================
--- gitaly.orig/internal/gitaly/rubyserver/rubyserver.go
+++ gitaly/internal/gitaly/rubyserver/rubyserver.go
@@ -192,7 +192,7 @@ func (s *Server) start() error {
// Use 'ruby-cd' to make sure gitaly-ruby has the same working directory
// as the current process. This is a hack to sort-of support relative
// Unix socket paths.
- args := []string{"bundle", "exec", "bin/ruby-cd", wd, gitalyRuby, strconv.Itoa(os.Getpid()), socketPath}
+ args := []string{"bundle.RUBY_SUFFIX", "exec", "bin/ruby-cd", wd, gitalyRuby, strconv.Itoa(os.Getpid()), socketPath}
events := make(chan supervisor.Event)
check := func() error { return ping(socketPath) }