summaryrefslogtreecommitdiff
path: root/git-update-agent
diff options
context:
space:
mode:
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