diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-04-03 18:59:24 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-04-03 18:59:24 +0300 |
commit | b2700e64cce7c9b258e117a995eda8de00a8a988 (patch) | |
tree | e71328d46ad2e58c964dbd2bc3e15e33c458245d /lib/api/entities.rb | |
parent | 2fceb4374141407b2f41ed7b6af5a0b6a2f9f4f1 (diff) | |
parent | ed5d59d4c4b6ac092223774a859fbaa3bf9c3699 (diff) |
Merge branch '22303-symbolic-in-tree' into 'master'
#22303 fix mode representation git::tree ( in base 8 )
Closes #22303
See merge request !9780
Diffstat (limited to 'lib/api/entities.rb')
-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 01ae2dbd583..00d44821e3f 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 |