Skip to content

Commit

Permalink
Add test case for stripping .git suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Apr 26, 2024
1 parent 8232421 commit 19059d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/tabby-common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,10 @@ mod tests {
RepositoryConfig::canonicalize_url("https://github.com/TabbyML/tabby"),
"https://github.com/TabbyML/tabby"
);

assert_eq!(
RepositoryConfig::canonicalize_url("https://github.com/TabbyML/tabby.git"),
"https://github.com/TabbyML/tabby"
);
}
}

0 comments on commit 19059d7

Please sign in to comment.