mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
gitweb: Fix an issue when cloning existing repository
Skip all the other git clone progress log lines. Fixes occasional `'total_progress' not defined` error. Tested in the testing container that cloning exisiting repository works. Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
ee7c6373fc
commit
0c47956c2a
@ -145,6 +145,8 @@ def _clone_status_line_to_percent(line):
|
||||
total_progress = 10 + 0.6 * progress
|
||||
elif 'Resolving deltas' in text:
|
||||
total_progress = 70 + 0.3 * progress
|
||||
else:
|
||||
return None
|
||||
|
||||
return str(int(total_progress))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user