diff options
author | mhasbini <mohammad.hasbini@gmail.com> | 2017-04-01 18:55:14 +0300 |
---|---|---|
committer | mhasbini <mohammad.hasbini@gmail.com> | 2017-04-02 14:42:37 +0300 |
commit | ed5d59d4c4b6ac092223774a859fbaa3bf9c3699 (patch) | |
tree | 67d210b7949d5a92b09e459b6ca67afc351c68aa /lib/api | |
parent | 9fc17f6f4abdb04f3cf1b60b87bd67b894a19c39 (diff) | |
download | gitlab-ce-ed5d59d4c4b6ac092223774a859fbaa3bf9c3699.tar.gz |
Fix symlink icon in project tree
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 5954aea8041..485590316bd 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -204,7 +204,7 @@ module API expose :id, :name, :type, :path expose :mode do |obj, options| - filemode = obj.mode.to_s(8) + filemode = obj.mode filemode = "0" + filemode if filemode.length < 6 filemode end |