Skip to content

Commit

Permalink
Progress bar on git pull (#14)
Browse files Browse the repository at this point in the history
> 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)
  • Loading branch information
fvalette-ledger authored Jan 14, 2025
2 parents b4ac6e0 + 71a19ab commit a417f59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies = [
"tomli>=2.0.1; python_version < '3.11'",
"referencing>=0.33.0",
"rich>=13.6",
"GitPython>=3.1.43",
"GitPython>=3.1.44",
]
classifiers = [
"Development Status :: 4 - Beta",
Expand Down
2 changes: 1 addition & 1 deletion src/outpost/barbican/scm/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def fetch(self) -> None:
if is_new_ref:
refspec += ":" + refspec

fetch_infos = self._repo.remote().fetch(refspec=refspec)
fetch_infos = self._repo.remote().fetch(refspec=refspec, progress=GitProgressBar())

# this should never occurs
if len(fetch_infos) != 1:
Expand Down

0 comments on commit a417f59

Please sign in to comment.