Skip to content

Commit 432ac62

Browse files
nikhedonianjlr
authored andcommitted
fix: fetchcommits and terminates expnential deepening if no commits fetched (#330)
1 parent 281b0fc commit 432ac62

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

buckaroo/DefaultSourceExplorer.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ type DefaultSourceExplorer (console : ConsoleManager, downloadManager : Download
101101
match maybeBranchRef with
102102
| Some branchRef ->
103103
yield branchRef.Revision
104-
yield! gitManager.FetchCommits url branchRef.Revision
104+
yield! gitManager.FetchCommits url branchRef.Name
105105
()
106106
| None -> ()
107107
}

buckaroo/GitCli.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ type GitCli (console : ConsoleManager) =
222222
return (skip + (nextList |> List.length), nextList, fetchNext)
223223
})
224224
( 0, List.empty, async { return () } )
225+
|> AsyncSeq.takeWhile (fun (_, revs, _) -> revs.Length > 0)
225226
|> AsyncSeq.collect (fun (_, revs, fetchNext) -> asyncSeq {
226227
yield! revs |> AsyncSeq.ofSeq
227228
do! fetchNext

0 commit comments

Comments
 (0)