Commits

Steve Borho  committed 2bc6d4d

hgignore: fix behaviour when .hgignore file is empty

fixes #115

  • Participants
  • Parent commits d3325fa

Comments (0)

Files changed (1)

File hggtk/hgignore.py

         try:
             l = open(repo.wjoin('.hgignore'), 'rb').readlines()
             self.doseoln = l[0].endswith('\r\n')
-        except (IOError, ValueError):
+        except (IOError, ValueError, IndexError):
             self.doseoln = os.name == 'nt'
             l = []