/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/workingtree.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-08-14 00:49:33 UTC
  • mfrom: (7065.1.1 ignored-directory)
  • Revision ID: breezy.the.bot@gmail.com-20180814004933-kgyoaj2gee2n11uv
Properly handled ignored directories in Git trees.

Merged from https://code.launchpad.net/~jelmer/brz/ignored-directory/+merge/352937

Show diffs side-by-side

added added

removed removed

Lines of Context:
631
631
        match = self._global_ignoreglobster.match(filename)
632
632
        if match is not None:
633
633
            return match
634
 
        encoded_filename = filename.encode('utf-8')
635
634
        try:
636
635
            if self.kind(filename) == 'directory':
637
 
                encoded_filename += b'/'
 
636
                filename += '/'
638
637
        except errors.NoSuchFile:
639
638
            pass
640
 
        encoded_filename = encoded_filename.lstrip(b'/')
 
639
        filename = filename.lstrip('/')
641
640
        ignore_manager = self._get_ignore_manager()
642
641
        ps = list(ignore_manager.find_matching(filename))
643
642
        if not ps: