update.sh git

Use the git subcommand with the update.sh script to update the IBM® Engineering Workflow Management (EWM) Git configuration variables rtc.repourl and rtc.repokey in the config file of the bare Git repository.

Prerequisites

The update.sh git subcommand requires that you have already added configuration variables by using configure.sh git.

The git subcommand must be executed on the system where the bare Git repository resides. This is usually the system where the Git hosting server runs. Command arguments that accept a file or folder path should be valid paths inside this system.

The user executing the subcommand must have permissions to write to the config file of the bare Git repository.

Usage

cd EWM Git Integration Toolkit/tools/install 
./update.sh git -g git-repo-path -r rtc-repository-url -k rtc-repo-key

Options

Option Description Required
-g/--git-repo git-repo-path The absolute path to the bare Git repository. Yes
-k/--repo-key rtc-repo-key Key of the Git repository after it is registered in the EWM server. Yes
-r/--repo-url rtc-repository-url URL of the EWM server in which this Git repository is registered. Yes
-h/--help Displays this help message. No

Examples

# Display usage/help
cd EWM Git Integration Toolkit/tools/install
./update.sh git --help
# If the Git repositories managed by the hosting server are located under /opt/git-data/repos/ 
# Update the EWM configuration variables in a Git repository
cd EWM Git Integration Toolkit/tools/install
./update.sh git -g /opt/git-data/repos/myrepo.git -r https://localhost:9443/ccm -k cd5d0cde8e8e11e9bc42526af7764f64 
Update the EWM configuration variables in a Git repository (long options)
cd EWM Git Integration Toolkit/tools/install
./update.sh git –git-repo /opt/git-data/repos/myrepo.git –repo-url https://localhost:9443/ccm –repo-key cd5d0cde8e8e11e9bc42526af7764f64