A new user interface for you! Read more...

File use_correct_ruby.patch of Package gitaly

Index: gitaly-v1.47.0/internal/rubyserver/rubyserver.go
===================================================================
--- gitaly-v1.47.0.orig/internal/rubyserver/rubyserver.go
+++ gitaly-v1.47.0/internal/rubyserver/rubyserver.go
@@ -138,7 +138,7 @@ func Start() (*Server, 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) }
Index: gitaly-v1.47.0/internal/linguist/linguist.go
===================================================================
--- gitaly-v1.47.0.orig/internal/linguist/linguist.go
+++ gitaly-v1.47.0/internal/linguist/linguist.go
@@ -30,7 +30,7 @@ type Language struct {
 
 // Stats returns the repository's language stats as reported by 'git-linguist'.
 func Stats(ctx context.Context, repoPath string, commitID string) (map[string]int, error) {
-	cmd := exec.Command("bundle", "exec", "bin/ruby-cd", repoPath, "git-linguist", "--commit="+commitID, "stats")
+	cmd := exec.Command("bundle.RUBY_SUFFIX", "exec", "bin/ruby-cd", repoPath, "git-linguist", "--commit="+commitID, "stats")
 	cmd.Dir = config.Config.Ruby.Dir
 	reader, err := command.New(ctx, cmd, nil, nil, nil, os.Environ()...)
 	if err != nil {
@@ -88,7 +88,7 @@ func openLanguagesJSON() (io.ReadCloser,
 	// We use a symlink because we cannot trust Bundler to not print garbage
 	// on its stdout.
 	rubyScript := `FileUtils.ln_sf(Bundler.rubygems.find_name('github-linguist').first.full_gem_path, ARGV.first)`
-	cmd := exec.Command("bundle", "exec", "ruby", "-rfileutils", "-e", rubyScript, linguistPathSymlink.Name())
+	cmd := exec.Command("bundle.RUBY_SUFFIX", "exec", "ruby.RUBY_SUFFIX", "-rfileutils", "-e", rubyScript, linguistPathSymlink.Name())
 	cmd.Dir = config.Config.Ruby.Dir
 
 	// We have learned that in practice the command we are about to run is a