summaryrefslogtreecommitdiff
path: root/lib/gitlab
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-04-03 15:59:24 +0000
committerDouwe Maan <douwe@gitlab.com>2017-04-03 15:59:24 +0000
commitb2700e64cce7c9b258e117a995eda8de00a8a988 (patch)
treee71328d46ad2e58c964dbd2bc3e15e33c458245d /lib/gitlab
parent2fceb4374141407b2f41ed7b6af5a0b6a2f9f4f1 (diff)
parented5d59d4c4b6ac092223774a859fbaa3bf9c3699 (diff)
downloadgitlab-ce-b2700e64cce7c9b258e117a995eda8de00a8a988.tar.gz
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/gitlab')
-rw-r--r--lib/gitlab/git/tree.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/tree.rb b/lib/gitlab/git/tree.rb
index f7450e8b58f..b722d8a9f56 100644
--- a/lib/gitlab/git/tree.rb
+++ b/lib/gitlab/git/tree.rb
@@ -33,7 +33,7 @@ module Gitlab
root_id: root_tree.oid,
name: entry[:name],
type: entry[:type],
- mode: entry[:filemode],
+ mode: entry[:filemode].to_s(8),
path: path ? File.join(path, entry[:name]) : entry[:name],
commit_id: sha,
)