#657  Repos within repos
Closed
Quin opened 2 years ago

I am just wondering what the best way to handle having repos within repos.

Say I am developing a WordPress site. This by itself would be a project with it's own repo. And if I want to include a plugin, which has it's own version control/repo, how would I best integrate the plugin and be able to update it whenever changes are made?

The plugin would have some "local" changes made, such as styling, but I'll need to merge in the bigger changes from the plugin's repo (such as core code updates [depreciated code, etc.]).

Robin Shen commented 2 years ago

So you want to monitor changes of two separate repositories, and checkout latest code and process them altogether?

Quin commented 2 years ago

Almost.

There are two things I'd like to achieve (and I think they're rather similar). I think both can be done via forking.

I basically want to update some core files from the "master project". This project would be used in other projects, such as a plugin or base for the project. I can make tweaks to the "master project", push them to it's own repo, and then go into to WIP projects and then pull down those changes.

So if I do need to update depreciated code, all I have to do is push once and pull/merge everywhere else (rather than have to open multiple projects and copy and paste the changes).

When I push the WIP projects, it will include the changes from the master project.

Robin Shen commented 2 years ago

You may manually checkout desired repo in a command step, and do merge/push as necessary. Also the restful api can be used to trigger another build if desired.

Robin Shen changed state to 'Closed' 2 years ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Normal
Assignee
Not assigned
Issue Votes (0)
Watchers (4)
Reference
onedev/server#657
Please wait...
Page is in error, reload to recover