summaryrefslogtreecommitdiff
path: root/tools/patman/gitutil.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-15 10:42:05 +0000
committerSimon Glass <sjg@chromium.org>2013-04-04 14:04:33 -0700
commitdc191505b903220a8581303efef0a1ead0e06532 (patch)
tree3d2592eb91de9c254757800be9cea7330a36540a /tools/patman/gitutil.py
parenta10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731 (diff)
downloadu-boot-imx-dc191505b903220a8581303efef0a1ead0e06532.zip
u-boot-imx-dc191505b903220a8581303efef0a1ead0e06532.tar.gz
u-boot-imx-dc191505b903220a8581303efef0a1ead0e06532.tar.bz2
patman: Allow commands to raise on error, or not
Make raise_on_error a parameter so that we can control which commands raise and which do not. If we get an error reading the alias file, just continue. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/gitutil.py')
-rw-r--r--tools/patman/gitutil.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py
index 77907c1..33743dd 100644
--- a/tools/patman/gitutil.py
+++ b/tools/patman/gitutil.py
@@ -359,7 +359,8 @@ def GetAliasFile():
Returns:
Filename of git alias file, or None if none
"""
- fname = command.OutputOneLine('git', 'config', 'sendemail.aliasesfile')
+ fname = command.OutputOneLine('git', 'config', 'sendemail.aliasesfile',
+ raise_on_error=False)
if fname:
fname = os.path.join(GetTopLevel(), fname.strip())
return fname