Skip to content

Commit

Permalink
Fix Git.remove_ignored_files in release.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DasIch committed Apr 5, 2013
1 parent 10c568f commit aba3a1c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/release.py
Expand Up @@ -10,6 +10,7 @@
import os import os
import re import re
import sys import sys
import errno
import shutil import shutil
import logging import logging
import textwrap import textwrap
Expand Down Expand Up @@ -232,7 +233,13 @@ def remove_ignored_files(self):
Removes all ignored files and directories. Removes all ignored files and directories.
""" """
for path in self.get_ignored_files(): for path in self.get_ignored_files():
shutil.rmtree() try:
shutil.rmtree(path)
except OSError as error:
if error.errno == errno.ENOTDIR:
os.remove(path)
else:
raise


def tag(self, tag): def tag(self, tag):
""" """
Expand Down

0 comments on commit aba3a1c

Please sign in to comment.