Skip to content

Commit 2f8b7d4

Browse files
committed
reverted [3169] and [3170] due to missing authorship attribution
1 parent 7d69c61 commit 2f8b7d4

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

gitplugin/git_fs.py

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,11 @@ def __init__(self, git, path, rev, tree_ls_info=None):
125125
kind = Node.DIRECTORY
126126
p = path.strip('/')
127127
if p != "":
128-
if tree_ls_info == None or tree_ls_info == "":
129-
tree_ls_info = git.tree_ls(rev, p)
130-
if tree_ls_info != []:
131-
[tree_ls_info] = tree_ls_info
132-
else:
133-
tree_ls_info = None
134-
135-
if tree_ls_info != None:
136-
(self.perm,k,self.sha,fn) = tree_ls_info
137-
else:
138-
k = 'blob'
139-
128+
if tree_ls_info:
129+
(self.perm,k,self.sha,fn)=tree_ls_info
130+
else:
131+
[(self.perm,k,self.sha,fn)]=git.tree_ls(rev, p)
140132
rev=self.git.last_change(rev, p)
141-
142133
if k=='tree':
143134
pass
144135
elif k=='blob':
@@ -191,8 +182,6 @@ def get_history(self, limit=None):
191182
for rev in self.git.history(self.rev, p):
192183
yield (self.path, rev, Changeset.EDIT)
193184

194-
def get_last_modified(self):
195-
return None
196185

197186
class GitChangeset(Changeset):
198187
def __init__(self, git, sha):

0 commit comments

Comments
 (0)