Skip to content

Commit

Permalink
Add inline documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Jun 19, 2024
1 parent 8648f6b commit 225cf51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/push_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ fn determine_names(
if subgroup_renaming_explicitly_disabled && repository_split.next().is_some() {
Err(eyre!(error_msg))?;
}
// If subgroup renaming is disabled, the project name is just the originally provided
// name (and we've already determined that the name is of the form `{owner}/{project}`.
// But if subgroup renaming is disabled, then a repo name like `a/b/c/d/e` is converted
// to `a/b-c-d-e`.
let project_name = if subgroup_renaming_explicitly_disabled {
project_name
} else {
Expand Down

0 comments on commit 225cf51

Please sign in to comment.