Merge ~cjwatson/lp-codeimport:git-fetch-progress into lp-codeimport:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 29442137343c5ca3c4cdfdfe11c67f107cdd7452
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/lp-codeimport:git-fetch-progress
Merge into: lp-codeimport:master
Diff against target: 13 lines (+1/-1)
1 file modified
lib/lp/codehosting/codeimport/worker.py (+1/-1)
Reviewer Review Type Date Requested Status
Jürgen Gmach Approve
Review via email: mp+415936@code.launchpad.net

Commit message

Run git fetch with --progress

Description of the change

I'm hoping that this will make it easier to see what's going on in https://bugs.launchpad.net/lp-codeimport/+bug/1961804.

To post a comment you must log in.
Revision history for this message
Jürgen Gmach (jugmac00) wrote :

🤞

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/lp/codehosting/codeimport/worker.py b/lib/lp/codehosting/codeimport/worker.py
2index 4b6dbe7..f547cfb 100644
3--- a/lib/lp/codehosting/codeimport/worker.py
4+++ b/lib/lp/codehosting/codeimport/worker.py
5@@ -1184,7 +1184,7 @@ class GitToGitImportWorker(ImportWorker):
6 "remote", "add", "source", self.source_details.url,
7 cwd="repository")
8 self._runGit(
9- "fetch", "--prune", "source", "+refs/*:refs/*",
10+ "fetch", "--progress", "--prune", "source", "+refs/*:refs/*",
11 cwd="repository")
12 try:
13 new_head = self._getHead("repository", "source")

Subscribers

People subscribed via source and target branches