Don't throw errors about normal fetch output to stderr
This commit is contained in:
parent
f18867bd99
commit
e1d6f9735c
1 changed files with 6 additions and 2 deletions
|
@ -76,8 +76,12 @@ class Addon(object):
|
|||
for line in err.splitlines():
|
||||
if line in ["Your configuration specifies to merge with the ref 'master'", "from the remote, but no such ref was fetched."]:
|
||||
# This means the repository has no commits yet
|
||||
continue
|
||||
real_errs.append(line)
|
||||
pass
|
||||
elif "From" in line or "origin/master" in line:
|
||||
# Regular fetch stuff
|
||||
pass
|
||||
else:
|
||||
real_errs.append(line)
|
||||
if real_errs:
|
||||
raise AddonError(self.name, "Error pulling:\n{0}".format("\n".join(real_errs)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue