Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #4500

Closed
Open
Created Jul 05, 2013 by Administrator@rootOwner

gitlab:check should check realpath of repo_path not just the last component for realness

Created by: PAStheLoD

Hello!

After upgrade from 3.0 to 5.3 I was wondering what was going on with the update hook, and it turns out that check's report is a bit misleading. I didn't wanted to fork the whole repo just for a one-line edit, so excuse this lame patch:

--- a/lib/tasks/gitlab/check.rake
+++ b/lib/tasks/gitlab/check.rake
@@ -432,7 +432,7 @@ namespace :gitlab do
         return
       end

-      unless File.symlink?(repo_base_path)
+      unless File.realpath(repo_base_path) == repo_base_path
         puts "no".green
       else
         puts "yes".red

https://github.com/gitlabhq/gitlabhq/blob/master/lib/tasks/gitlab/check.rake#L435

Assignee
Assign to
Time tracking