Skip to content

Commit

Permalink
Update src/main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mystor authored Jul 18, 2024
1 parent bc74f74 commit 5a61b3e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2052,10 +2052,8 @@ fn cmd_diff(out: &Arc<dyn Out>, cfg: &Config, sub_args: &DiffArgs) -> Result<(),
version2: version2.clone(),
});

if matches!(
sub_args.mode,
DiffFetchMode::Sourcegraph | DiffFetchMode::DiffRs
) && version1.git_rev.is_none()
if sub_args.mode != FetchMode::Local
&& version1.git_rev.is_none()
&& version2.git_rev.is_none()
{
let url = match sub_args.mode {
Expand Down

0 comments on commit 5a61b3e

Please sign in to comment.