From: alex Date: Tue, 7 Jan 2025 07:31:22 +0000 (-0800) Subject: get_file_contents: silence error on missing branch X-Git-Tag: v1.2.2^0 X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;p=mirror-all get_file_contents: silence error on missing branch --- diff --git a/mirror-all b/mirror-all index edfa569..a7d08df 100755 --- a/mirror-all +++ b/mirror-all @@ -84,7 +84,7 @@ get_file_contents() { local contents local content_hash - content_hash="$("$GIT" ls-tree --object-only "$BRANCH" -- "$1")" + content_hash="$("$GIT" ls-tree --object-only "$BRANCH" -- "$1" 2>/dev/null)" if [[ -z "$content_hash" ]]; then echo ""