Skip to content

Conversation

@yerayrodriguez
Copy link

Fixes #52

private func repositoryURL() -> URL? {
if let urlString = try? self.git.findRespoitoryOriginURL()?.absoluteString {
return URL(string: urlString.replacingOccurrences(of: ":", with: "/").replacingOccurrences(of: "git@", with: "https://"))
return URL(string: urlString)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have to go back and understand why we were doing the replacing above before. But assuming it actually needed to be there for some reason. Wouldn't this change break that use case?

Seems like we need need some sort of conditional based handling of this to handle both scenarios.

Or am I missing something?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess a refactoring was done and this method was forgotten to be changed. I have tried to solve the problem by modifying the code as little as possible, but perhaps, as you say, it would be necessary to see the intentionality of the change that caused the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Links to references are not printed when the repository is cloned using https

2 participants