From 8cf4654b339a4b946d6f4beae04ed9a4e79fb4f6 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 6 Jan 2025 23:31:22 -0800 Subject: [PATCH] get_file_contents: silence error on missing branch --- mirror-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "" -- 2.39.5