~miconoco/woo

232d78206fbb77ae3f0b1343b2f2902384c8278b — Christoph Polcin a month ago 6662f51
Suppresses errors on snapshoting non existing repo
1 files changed, 2 insertions(+), 2 deletions(-)

M bin/woo
M bin/woo => bin/woo +2 -2
@@ 60,9 60,9 @@ _snapshot_repo() { # mod {{{
    mod="${1:-MOD}"
    murl="$(2>/dev/null git -C "${WOOWS}/${mod}" ls-remote --get-url || printf '')"
    read -r mref mnref mups <<EOF
        $(git -C "${WOOWS}/${mod}" \
        $(2>/dev/null git -C "${WOOWS}/${mod}" \
            for-each-ref --format="%(objectname:short) %(refname:short) %(upstream:short)" \
            "$(git -C "${WOOWS}/${mod}"  symbolic-ref -q HEAD)" \
            "$(2>/dev/null git -C "${WOOWS}/${mod}"  symbolic-ref -q HEAD)" \
        )
EOF
    printf "%s;%s;%s;%s;%s\n" "$mod" "$murl" "$mref" "$mnref" "$mups"