Skip to content

Commit

Permalink
Merge pull request #147 from siketyan/feat/disable-retry-on-non-fork
Browse files Browse the repository at this point in the history
feat: Disable retrying clone on non-fork repo
  • Loading branch information
siketyan authored Apr 25, 2023
2 parents 13d96b3 + 0fe3ce7 commit 9e13f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/clone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl Cmd {
},
) {
retries += 1;
if retries > CLONE_RETRY_COUNT {
if self.fork.is_none() || retries > CLONE_RETRY_COUNT {
return Err(e);
} else {
warn!(
Expand Down

0 comments on commit 9e13f97

Please sign in to comment.