Thread (14 messages) flat view 14 messages, 3 authors, 2016-06-16

Re: [PATCH 5/6] t1500: avoid setting environment variables outside of tests

From: Eric Sunshine <hidden>
Date: 2016-06-16 02:19:17

On Tue, May 10, 2016 at 3:48 PM, Eric Sunshine [off-list ref] wrote:
Actually, I think we can have improved encapsulation and maintain
readability like this:

    case "$1" in
    ...
    -g) env="$2"; shift;  shift ;;
    ...
    esac

    ...
    test_expect_success "..." '
        if test -n "$env"
        do
            test_when_finished "unset GIT_DIR"
            GIT_DIR="$env"
            export GIT_DIR
        fi
        ...
    '
At this point, I'd also rename 'env' to 'gitdir' to be more meaningful.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help