How to make link to submodule navigate to the default branch instead of specific commit tree on Github remote repo? #52200
Replies: 4 comments
-
A submodule always points to a specific commit. That's a property of submodules as such, not a design decision in the GitHub web UI. I think it'd be confusing to people if the link went to the default branch, because then they might see files that are different from what they get if they check out the repository with its submodules. |
Beta Was this translation helpful? Give feedback.
-
Well, thank you for your response @airtower-luna Although I wish that the repo owner should been given the option to choose if they want the link to take them to the default branch or to the commit. For this particular usage, I am not interested in seeing the commit in the remote, the local can keep doing that work. I just want to achieve a clean structure in the remote for my community contributors to see the sub project as a continuation or a part of the super project in the remote without branching out to the commit. |
Beta Was this translation helpful? Give feedback.
-
By the way, there is a bug on the github Web UI that makes me know that what I'm asking is not impossible. Bug reported here: https://github.com/orgs/community/discussions/52337#discussion-5059153 |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I asked this question on stackoverflow, but I have not gotten an answer yet.
I am working with git submodules. I have a parent repo on GitHub, and the submodule repos inside it are links to their respective repos on Github as expected. But I have the following issues:
main
(sometimes I usedevelop
as my default branch).Question: How do I get the links in the parent repo to take navigate to or take me to the default branch (and not a specific commit)?
Screenshot 1: parent repo
Screenshot 2: submodule repo (e.g. ng1-translate-app)
Beta Was this translation helpful? Give feedback.
All reactions