BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b2700e64
Commit
b2700e64
authored
Apr 03, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '22303-symbolic-in-tree' into 'master'
#22303 fix mode representation git::tree ( in base 8 ) Closes #22303 See merge request !9780
parents
2fceb437
ed5d59d4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
22303-symbolic-in-tree.yml
changelogs/unreleased/22303-symbolic-in-tree.yml
+4
-0
entities.rb
lib/api/entities.rb
+1
-1
tree.rb
lib/gitlab/git/tree.rb
+1
-1
tree_spec.rb
spec/lib/gitlab/git/tree_spec.rb
+1
-0
No files found.
changelogs/unreleased/22303-symbolic-in-tree.yml
0 → 100644
View file @
b2700e64
---
title
:
Fix symlink icon in project tree
merge_request
:
9780
author
:
mhasbini
lib/api/entities.rb
View file @
b2700e64
...
...
@@ -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
...
...
lib/gitlab/git/tree.rb
View file @
b2700e64
...
...
@@ -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
,
)
...
...
spec/lib/gitlab/git/tree_spec.rb
View file @
b2700e64
...
...
@@ -19,6 +19,7 @@ describe Gitlab::Git::Tree, seed_helper: true do
it
{
expect
(
dir
.
commit_id
).
to
eq
(
SeedRepo
::
Commit
::
ID
)
}
it
{
expect
(
dir
.
name
).
to
eq
(
'encoding'
)
}
it
{
expect
(
dir
.
path
).
to
eq
(
'encoding'
)
}
it
{
expect
(
dir
.
mode
).
to
eq
(
'40000'
)
}
context
:subdir
do
let
(
:subdir
)
{
Gitlab
::
Git
::
Tree
.
where
(
repository
,
SeedRepo
::
Commit
::
ID
,
'files'
).
first
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment