Skip to content

Commit

Permalink
docs: print the warning only once
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia committed Oct 2, 2023
1 parent 4fd5868 commit e83d74b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/internal/Git.ml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ struct
run_null Cmd.(git ~root % "reset" % "--quiet" % "--hard" % "--recurse-submodules" % "FETCH_HEAD" % "--")
in
let relaxed () =
Logger.try_with strict
~fatal:(fun d -> Logger.emit_diagnostic d; Logger.emitf `InvalidRoute "Network unavailable; use local copies")
Logger.try_with strict ~fatal:Logger.emit_diagnostic
in
if err_on_failed_fetch then strict () else relaxed ()

Expand Down

0 comments on commit e83d74b

Please sign in to comment.