Skip to content

Commit

Permalink
Update git-cliff-core/src/repo.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun authored Oct 21, 2024
1 parent 83aa8af commit ea50194
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions git-cliff-core/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,15 +474,7 @@ fn url_path_segments(url: &str) -> Result<Remote> {
///
/// This function expects the URL to be in the following format:
///
/// git@hostname:owner/repo.git
///
/// The key parts are the colon (:) and the path separator (/).
///
/// The returned `Remote` will contain the `owner` and `repo` parts from the
/// URL.
///
/// This function will return an `Error::RepoError` if the colon or separator
/// are not found.
/// > git@hostname:owner/repo.git
fn ssh_path_segments(url: &str) -> Result<Remote> {
let [_, owner_repo, ..] = url
.strip_suffix(".git")
Expand Down

0 comments on commit ea50194

Please sign in to comment.