What's the workflow of developing in submodules? #683
Replies: 5 comments 8 replies
-
It isn't clear in which repo you are runing which steps. Please give a specific set of steps to replay to see your problem. I think the simplest is to fork ORFS & OR. |
Beta Was this translation helpful? Give feedback.
-
When the submodule is checked out it will be a specific commit that is checked out not the HEAD. You can just 'it checkout master' and commit your change. Then in ORFS you can update the submodule to point to your new commit. |
Beta Was this translation helpful? Give feedback.
-
In ORFS you should see that the submodule is modified and you git add/commit it as usual. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I git clone --recursive the parent repo "openroad-flow-scripts" so I get all the code including submodules in the local.
And then I use "git remote rename origin upstream" and "git remote add origin <my_new_created_blank_openroad-flow.git> to let it point to my repo. (I only create one repo for the openroad-flow-script. I didn't create repo for submodules.)
After I made changes in submodule /tools/openroad/src, I do git
add
andcommit
in the directory of submodule tools/openroad, and then in the parent directory /openroad-flow-scripts, I dogit add tools/openroad
,commit
,push
. I can see it does push something to somewhere, but I cannot find it on github.com, on which the directory url points to 404 page. I am wondering where the submodules go when I do thegit remote add origin <my_openroad-flow.git>
. Is there a way to create the submodule repo automatically in my repo?Beta Was this translation helpful? Give feedback.
All reactions