| |
@@ -1671,7 +1671,10 @@
|
| |
These changes are valid just for local git repository.
|
| |
"""
|
| |
git_excludes_path = os.path.join(conf_dir, '.git/info/exclude')
|
| |
- git_excludes = GitIgnore(git_excludes_path)
|
| |
+ try:
|
| |
+ git_excludes = GitIgnore(git_excludes_path)
|
| |
+ except (IOError, OSError):
|
| |
+ return
|
| |
for item in self.git_excludes:
|
| |
git_excludes.add(item)
|
| |
git_excludes.write()
|
| |
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1733862