Skip to content

Commit

Permalink
[vgit-] use .stem for non-visidata.Path #2188
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed May 16, 2024
1 parent 2c790fa commit 2cedecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/apps/vgit/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def remotediff(self):
return self.gitBranchStatuses.get(self.branch, 'no branch')

def iterload(self):
files = [GitFile(p, self.source) for p in self.source.iterdir() if p.base_stem not in ('.git')] # files in working dir
files = [GitFile(p, self.source) for p in self.source.iterdir() if p.stem not in ('.git')] # files in working dir

filenames = dict((gf.filename, gf) for gf in files)

Expand Down

0 comments on commit 2cedecd

Please sign in to comment.