Commit e9933c68 authored by Markus Frosch's avatar Markus Frosch 📣
Browse files

Add upstream helper script

[ci skip]
parent 92df5bac
#!/bin/bash
REMOTE=upstream
REMOTE_URL=https://github.com/Icinga/deb-icinga2.git
if ! git config "remote.${REMOTE}.url" &>/dev/null; then
git remote add "${REMOTE}" "${REMOTE_URL}"
elif [ "$(git config "remote.${REMOTE}.url")" != "${REMOTE_URL}" ]; then
git remote set-url "${REMOTE}" "${REMOTE_URL}"
fi
if [ "$(git config "remote.${REMOTE}.tagOpts")" != "--no-tags" ]; then
git config "remote.${REMOTE}.tagOpts" "--no-tags"
fi
git fetch "${REMOTE}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment