Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
packaging
raspbian-icinga2
Commits
e9933c68
Commit
e9933c68
authored
Jul 07, 2019
by
Markus Frosch
Browse files
Add upstream helper script
[ci skip]
parent
92df5bac
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/fetch-upstream
0 → 100755
View file @
e9933c68
#!/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
}
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment