summaryrefslogtreecommitdiff
path: root/git-update-agent
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2021-08-24 02:13:40 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2021-08-24 02:13:40 -0500
commite367060a93c23cd75e2800b8397a16f7a2018c1d (patch)
treee73a206fcd12c232632ad416d640e6acf739fff7 /git-update-agent
parent79327100c24bd9557d79848b4ebb484d97f1fef2 (diff)
downloaddeb-git-update-agent-e367060a93c23cd75e2800b8397a16f7a2018c1d.tar.xz
deb-git-update-agent-e367060a93c23cd75e2800b8397a16f7a2018c1d.zip
silence fetches
Diffstat (limited to 'git-update-agent')
-rw-r--r--git-update-agent5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-update-agent b/git-update-agent
index b6126db..4a0c691 100644
--- a/git-update-agent
+++ b/git-update-agent
@@ -124,7 +124,8 @@ merge() {
# Attempt fetch to REMOTE/UPSTREAM_BRANCH
if ! git fetch --tags --force "$remote" \
- "refs/heads/$remote_branch:refs/remotes/$remote_ref"
+ "refs/heads/$remote_branch:refs/remotes/$remote_ref" \
+ 2>/dev/null
then
die "Cannot fetch from $remote_ref from $local_branch"
fi
@@ -312,7 +313,7 @@ init_repo() {
set_should_track true
set +e
- if ! git fetch --force --tags "$remote"; then
+ if ! git fetch --force --tags "$remote" 2>/dev/null; then
die "Could not download content from \"$remote_url\" on \"$DEFAULT_BRANCH\"."
fi