View Source

h3. {color:#666666}Untar the base git repo to your home directory:{color}

{color:#000000}$ tar xvf /path/to/ooi_repo<date \+"%Y%m%d">.tgz{color}

h3. {color:#666666}{*}Check the 001 OOI bundle{*}{color}

{color:#000000}$ cd ooi{color}

{color:#000000}$ git status{color}

{color:#000000}$ git bundle verify /path/to/001_ooi.bundle{color}

h3. {color:#666666}Apply the 001 OOI bundle{color}

{color:#000000}$ git pull /path/to/001_ooi.bundle refs/heads/master{color}

{color:#000000}$ git status{color}
{color:#000000}\# On branch master{color}

{color:#000000}\# Your branch is ahead of 'origin/master' by 6 commits.{color}

{color:#000000}\#{color}

{color:#000000}\# Changed but not updated:{color}

{color:#000000}\# &nbsp;&nbsp;(use "git add <file>..." to update what will be committed){color}

{color:#000000}\# &nbsp;&nbsp;(use "git checkout \-\- <file>..." to discard changes in working directory){color}

{color:#000000}\#{color}

{color:#000000}\#{color} {color:#000000}modified: &nbsp;&nbsp;submodules/ogc (new commits){color}

{color:#000000}\#{color}

h3. {color:#666666}Check the 002 OOI bundle{color}

{color:#000000}$ git bundle verify /path/to/002_ooi.bundle{color}

h3. {color:#666666}Apply the 002 OOI bundle{color}

{color:#000000}$ git pull /path/to/002_ooi.bundle refs/remotes/origin/master{color}

{color:#000000}$ git status{color}
{color:#000000}\# On branch master{color}

{color:#000000}\# Your branch is ahead of 'origin/master' by 10 commits.{color}

{color:#000000}\#{color}

{color:#000000}\# Changed but not updated:{color}

{color:#000000}\# &nbsp;&nbsp;(use "git add <file>..." to update what will be committed){color}

{color:#000000}\# &nbsp;&nbsp;(use "git checkout \-\- <file>..." to discard changes in working directory){color}

{color:#000000}\#{color}

{color:#000000}\#{color} {color:#000000}modified: &nbsp;&nbsp;submodules/ogc (new commits){color}

{color:#000000}\#{color}

{color:#000000}no changes added to commit (use "git add" and/or "git commit \-a"){color}

h3. {color:#666666}Updated submodule (ogc){color}

{color:#000000}$ cd submodules/<submodule>{color}

{color:#000000}$ git bundle verify /path/to/ogc.bundle{color}
{color:#000000}The bundle contains 1 ref{color}

{color:#000000}1826b0b0ac26875e82674b1f3ad1ec5efa9a0e74 refs/heads/tmp{color}

{color:#000000}The bundle requires these 1 ref{color}

{color:#000000}bcc4af7334e4ecef58d9515a3807e5c740e7fc26 OOI #1 Fixing some issues for the latest AWIPS2{color}
{color:#000000}$ git fetch /path/to/submodule.bundle <ref> (ref here is tmp){color}

{color:#000000}$ git checkout <hash from verify>{color}

h3. {color:#000000}New submodule (ooi-foss){color}

{color:#000000}$ cd submodules{color}

{color:#000000}$ git bundle verify /path/to/foss.bundle{color}

{color:#000000}$ git clone /path/to/bundle <submodule>{color}

{color:#000000}$ cd <submodule>{color}

{color:#000000}$ git checkout <hash from verify>{color}

{color:#000000}$ cd ..{color}

{color:#000000}$ mv <submodule>/.git ../.git/modules/submodules/<submodule>{color}

{color:#000000}Edit .git file:{color}

{color:#000000}$ vi <submodule>/.git{color}

{color:#000000}Insert the following, save, & exit:{color}

{color:#000000}gitdir: ../../.git/modules/submodules/<submodule>{color}

h3. {color:#666666}Apply instrument_agent bundle{color}

{color:#000000}$ cd ooi{color}

{color:#000000}$ git bundle verify /path/to/instrument_agent.bundle{color}

{color:#000000}$ git branch instrument_agent{color}

{color:#000000}$ git checkout instrument_agent{color}

{color:#000000}$ git pull /path/to/instrument_agent.bundle refs/heads/instrument_agent{color}

{color:#000000}$ git submodule update \--init edex/com.raytheon.uf.ooi.plugin.instrumentagent{color}