summaryrefslogtreecommitdiff
path: root/morphlib/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/git.py')
-rw-r--r--morphlib/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/git.py b/morphlib/git.py
index c491991c..9cdd0a84 100644
--- a/morphlib/git.py
+++ b/morphlib/git.py
@@ -80,7 +80,7 @@ class Submodules(object):
# try to read the .gitmodules file from the repo/ref
content = self.app.runcmd(
['git', 'cat-file', 'blob', '%s:.gitmodules' % self.ref],
- cwd=self.repo)
+ cwd=self.repo, ignore_fail=True)
# drop indentation in sections, as RawConfigParser cannot handle it
return '\n'.join([line.strip() for line in content.splitlines()])