Skip to content

Commit a417f59

Browse files
Progress bar on git pull (#14)
> Fix Fetch progress bar by @fvalette-ledger in gitpython-developers/GitPython#1971 GitPython 3.1.44 got my fix merged, and thus, we can reintroduce progress bar on git pull (barbican update)
2 parents b4ac6e0 + 71a19ab commit a417f59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies = [
3030
"tomli>=2.0.1; python_version < '3.11'",
3131
"referencing>=0.33.0",
3232
"rich>=13.6",
33-
"GitPython>=3.1.43",
33+
"GitPython>=3.1.44",
3434
]
3535
classifiers = [
3636
"Development Status :: 4 - Beta",

src/outpost/barbican/scm/git.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def fetch(self) -> None:
173173
if is_new_ref:
174174
refspec += ":" + refspec
175175

176-
fetch_infos = self._repo.remote().fetch(refspec=refspec)
176+
fetch_infos = self._repo.remote().fetch(refspec=refspec, progress=GitProgressBar())
177177

178178
# this should never occurs
179179
if len(fetch_infos) != 1:

0 commit comments

Comments
 (0)