diff options
author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2021-08-24 02:13:40 -0500 |
---|---|---|
committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2021-08-24 02:13:40 -0500 |
commit | e367060a93c23cd75e2800b8397a16f7a2018c1d (patch) | |
tree | e73a206fcd12c232632ad416d640e6acf739fff7 | |
parent | 79327100c24bd9557d79848b4ebb484d97f1fef2 (diff) | |
download | deb-git-update-agent-e367060a93c23cd75e2800b8397a16f7a2018c1d.tar.xz deb-git-update-agent-e367060a93c23cd75e2800b8397a16f7a2018c1d.zip |
silence fetches
-rw-r--r-- | git-update-agent | 5 |
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 |