mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Only show repo icon at root of tree
This commit is contained in:
@@ -26,7 +26,7 @@ class DirectoryView extends View
|
||||
if repo?
|
||||
path = @directory.getPath()
|
||||
@directoryName.addClass('ignored') if repo.isPathIgnored(path)
|
||||
if path is repo.getWorkingDirectory()
|
||||
if not parent and path is repo.getWorkingDirectory()
|
||||
@directoryName.addClass('repository-icon')
|
||||
else if repo.isSubmodule(path)
|
||||
@directoryName.addClass('submodule-icon')
|
||||
|
||||
Reference in New Issue
Block a user