Bläddra i källkod

Fix a bug when handling errors during a fetch.

tags/v0.2.1
Ben Kurtovic 10 år sedan
förälder
incheckning
e3c6cdf54b
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. +3
    -2
      gitup/update.py

+ 3
- 2
gitup/update.py Visa fil

@@ -92,12 +92,13 @@ def _fetch_remotes(remotes):
msg = err.command[0].replace("Error when fetching: ", "")
if not msg.endswith("."):
msg += "."
print(RED + "error:", msg)
print(":", RED + "error:", msg)
return
except AssertionError: # Seems to be the result of a bug in GitPython
# This happens when git initiates an auto-gc during fetch:
print(RED + "error:", "something went wrong in GitPython,",
print(":", RED + "error:", "something went wrong in GitPython,",
"but the fetch might have been successful.")
return
rlist = []
for attr, singular, plural in info:
names = [_get_name(res.ref)


Laddar…
Avbryt
Spara