]> infiniteadaptability.org Git - mirror-all/commitdiff
get_file_contents: silence error on missing branch master v1.2.2
authoralex <[email protected]>
Tue, 7 Jan 2025 07:31:22 +0000 (23:31 -0800)
committeralex <[email protected]>
Tue, 7 Jan 2025 07:31:46 +0000 (23:31 -0800)
mirror-all

index edfa569b4e837780c3446ad26f86d4a4976ba62f..a7d08df157ac3f705f2c35f5f62e608c22fe61a1 100755 (executable)
@@ -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 ""