[PR #2356] [MERGED] Add UseCompatSSHURI setting #16359

Closed
opened 2025-11-02 12:08:47 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2356
Author: @ElectronicWar
Created: 8/22/2017
Status: Merged
Merged: 8/26/2017
Merged by: @tboerger

Base: masterHead: add-sshurl-option


📝 Commits (2)

  • 6216a90 Add UseCompatSSHURI setting
  • a34402f Make protocol if construct more readable

📊 Changes

3 files changed (+8 additions, -0 deletions)

View changed files

📝 conf/app.ini (+2 -0)
📝 models/repo.go (+3 -0)
📝 modules/setting/setting.go (+3 -0)

📄 Description

This adds the Repository.UseCompatSSHURI boolean setting.
It forces the clone URL box of a repo to always show ssh://user@server/path URL instead of the scp-style URI user@server:path when the default SSH port 22 is used.

I tried to keep it as simple as possible and the changes minimal.
Feedback appreciated.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2356 **Author:** [@ElectronicWar](https://github.com/ElectronicWar) **Created:** 8/22/2017 **Status:** ✅ Merged **Merged:** 8/26/2017 **Merged by:** [@tboerger](https://github.com/tboerger) **Base:** `master` ← **Head:** `add-sshurl-option` --- ### 📝 Commits (2) - [`6216a90`](https://github.com/go-gitea/gitea/commit/6216a90dfff247ccd066a67c4091b815ed8721c1) Add UseCompatSSHURI setting - [`a34402f`](https://github.com/go-gitea/gitea/commit/a34402f1292fad65203e9a1dd6c550a397056f9b) Make protocol if construct more readable ### 📊 Changes **3 files changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `conf/app.ini` (+2 -0) 📝 `models/repo.go` (+3 -0) 📝 `modules/setting/setting.go` (+3 -0) </details> ### 📄 Description This adds the Repository.UseCompatSSHURI boolean setting. It forces the clone URL box of a repo to always show `ssh://user@server/path` URL instead of the scp-style URI `user@server:path` when the default SSH port 22 is used. I tried to keep it as simple as possible and the changes minimal. Feedback appreciated. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:08:47 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16359