Re: [PATCH 14/28] t3905: abstract away SHA-1-specific constants

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 6, 2018 at 7:17 PM, brian m. carlson
<sandals@xxxxxxxxxxxxxxxxxxxx> wrote:
> Adjust the test so that it computes variables for blobs instead of using
> hard-coded hashes.
>
> Signed-off-by: brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxx>
> ---
> diff --git a/t/t3905-stash-include-untracked.sh b/t/t3905-stash-include-untracked.sh
> @@ -34,25 +34,26 @@ test_expect_success 'stash save --include-untracked cleaned the untracked files'
>         git status --porcelain >actual &&
>         test_cmp expect actual
>  '
> -
> +tracked=$(git rev-parse --short $(echo 1 | git hash-object --stdin))
> +untracked=$(git rev-parse --short $(echo untracked | git hash-object --stdin))

You lost the blank line following the previous test.

>  cat > expect.diff <<EOF
>  diff --git a/HEAD b/HEAD
>  new file mode 100644
> -index 0000000..d00491f
> +index 0000000..$tracked
>  --- /dev/null
>  +++ b/HEAD



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux