go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.94k stars 5.48k forks source link

Add buttons to create a superproject and submodules #2142

Open ShalokShalom opened 7 years ago

ShalokShalom commented 7 years ago

EDIT: I changed this topic from submodule and superproject support to button support

lunny commented 7 years ago

But I think maybe Gitea has already supported that?

bkcsoft commented 7 years ago

As I've explained on IRC, Gitea already has support for Submodules, and a Superproject is just a name for a repo that only contains Submodules.

There is no button in Gitea to add submodules to a repo, but that would be another issue 🙂 Using the example at the bottom of this should help in adding Submodules to a repo in Gitea: https://git-scm.com/docs/gitmodules

3shirtlessmen commented 7 years ago

A button to add a sub module (or update an existing sub module) would be handy!

bkcsoft commented 7 years ago

@3shirtlessmen The "button" would be the "edit"-button on .gitmodules ;)

ShalokShalom commented 7 years ago

Gitea is a GUI which offers solutions in a more easy way?

NetOpWibby commented 6 years ago

The above link didn't get me any closer to figuring out how to use submodules but this link did: https://git-scm.com/book/en/v2/Git-Tools-Submodules

davduke commented 6 years ago

Hi! I would be also interested on this feature!

markuman commented 6 years ago

But I think maybe Gitea has already supported that?

Displaying submodules works already (as in github or gitlab). See this example project https://git.osuv.de/m/tinywebdis which uses https://github.com/soveran/resp as a submodule.

However, nor github nor gitlab supports this feature to manage submodules in the web UI.

In my opinion, managing submodules on the remote server will interrupt the local development workflow. You need to run git pull --recurse-submodules in your local environment when changes are made on remote.