Skip to content

Commit

Permalink
[ref-ls] Fix progress display
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Sep 5, 2020
1 parent 7f3c3a7 commit 2fcb557
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions gitoxide-core/src/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub mod refs {
fetch::{Action, Ref},
git_transport,
};
pub const PROGRESS_RANGE: std::ops::RangeInclusive<u8> = 1..=2;
use std::io;

#[derive(Default)]
Expand Down
2 changes: 1 addition & 1 deletion src/plumbing/lean/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn main() -> Result<()> {
let verbose = cli.verbose;
match cli.subcommand {
SubCommands::RemoteRefList(RemoteRefList { protocol, url }) => {
let (_handle, progress) = prepare(verbose, "remote-ref-list", None);
let (_handle, progress) = prepare(verbose, "remote-ref-list", Some(core::remote::refs::PROGRESS_RANGE));
core::remote::refs::list(
protocol,
&url,
Expand Down
6 changes: 3 additions & 3 deletions tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
* **gixp-ls-remote**
* [ ] A V1/V2 version of a delegate to list remotes of a given remote, attempting to use as many features as possible
* [ ] journey tests for each connection method
* [ ] file
* [x] file
* [ ] file JT
* [x] git
* [ ] git JT
* [ ] ssh
* [ ] ssh JT
* [ ] https (unauthenticated)
* [ ] https (authenticated)
* [x] https (unauthenticated)
* [x] https (authenticated)
* **git-protocol**
* [ ] delegate to support clone
* [ ] parse server negotiation response
Expand Down

0 comments on commit 2fcb557

Please sign in to comment.