summaryrefslogtreecommitdiff
path: root/morphlib/git.py
diff options
context:
space:
mode:
authorRic Holland <richard.holland@codethink.co.uk>2013-03-19 16:57:58 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2013-03-20 12:53:12 +0000
commitbadcf9fca84568bbd03af083fdec7e5f84739ea9 (patch)
tree2c8ee5d02821163bb06e31059339ff736a3374aa /morphlib/git.py
parente0112596cc338a75cc505e8ee2368d16d559ef36 (diff)
downloadmorph-badcf9fca84568bbd03af083fdec7e5f84739ea9.tar.gz
Changed the error message in log when morph fails to find gitmodules
morph.log will now show an INFO message rther than a ERROR
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()])