Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Background of the code transfer


OOM code transfer will allow tech teams to take ownership of their tech team code while still having the code being pulled

...

needed to be done will be to add a similar SSH remote to perform the push.


Developing code in oom


1- Clone the oom repo 

     git clone ssh://<LFID>@gerrit.onap.org:29418/oom

...

     git submodule update --init --recursive

OPTIONALLY: When cloning the repo, add the "--recurse-submodules" option in git clone command to also fetch the submodules in one step. 

3- Notice oom has a remote that points to the oom repo while, for example, oom/kubernetes/aai has a remote that points to aai/oom

...

6- Push your changes as usual


Few things to consider...


  • Commit changes to each submodule should only include files within the submodule itself and not contain files outside it. 
    • If changes are made to files outside the submodule, after doing "git commit" in the submodule those files outside the submodule will stay staged to the submodule that they belong. 
  • Each submodule will allow the related component committers to +2 changes.
    • For example, committers to appc can +2 changes in the appc/oom submodule and no other submodule.
  • File changes to oom excludding kubernetes folder are still managed by the OOM team.