Skip to content

Commit 2fcb557

Browse files
committed
[ref-ls] Fix progress display
1 parent 7f3c3a7 commit 2fcb557

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Diff for: gitoxide-core/src/remote.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pub mod refs {
55
fetch::{Action, Ref},
66
git_transport,
77
};
8+
pub const PROGRESS_RANGE: std::ops::RangeInclusive<u8> = 1..=2;
89
use std::io;
910

1011
#[derive(Default)]

Diff for: src/plumbing/lean/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn main() -> Result<()> {
3737
let verbose = cli.verbose;
3838
match cli.subcommand {
3939
SubCommands::RemoteRefList(RemoteRefList { protocol, url }) => {
40-
let (_handle, progress) = prepare(verbose, "remote-ref-list", None);
40+
let (_handle, progress) = prepare(verbose, "remote-ref-list", Some(core::remote::refs::PROGRESS_RANGE));
4141
core::remote::refs::list(
4242
protocol,
4343
&url,

Diff for: tasks.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* **gixp-ls-remote**
66
* [ ] A V1/V2 version of a delegate to list remotes of a given remote, attempting to use as many features as possible
77
* [ ] journey tests for each connection method
8-
* [ ] file
8+
* [x] file
99
* [ ] file JT
1010
* [x] git
1111
* [ ] git JT
1212
* [ ] ssh
1313
* [ ] ssh JT
14-
* [ ] https (unauthenticated)
15-
* [ ] https (authenticated)
14+
* [x] https (unauthenticated)
15+
* [x] https (authenticated)
1616
* **git-protocol**
1717
* [ ] delegate to support clone
1818
* [ ] parse server negotiation response

0 commit comments

Comments
 (0)