X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft7502-status.sh;h=9ce50cade8981bb5317397c10b0fabeba4893fc8;hb=6bc4c72132adbdc06c428f86a96f27e4f8173b99;hp=d6ae69d46e84a3e470d99efaf33bc0f2c83a9037;hpb=27ee189163070f53a87e033171a45520f70b242e;p=git.git diff --git a/t/t7502-status.sh b/t/t7502-status.sh index d6ae69d46..9ce50cade 100755 --- a/t/t7502-status.sh +++ b/t/t7502-status.sh @@ -88,4 +88,35 @@ test_expect_success 'status with relative paths' ' ' +cat > expect << \EOF +# On branch master +# Changes to be committed: +# (use "git reset HEAD ..." to unstage) +# +# new file: dir2/added +# +# Changed but not updated: +# (use "git add ..." to update what will be committed) +# +# modified: dir1/modified +# +# Untracked files: +# (use "git add ..." to include in what will be committed) +# +# dir1/untracked +# dir2/modified +# dir2/untracked +# expect +# output +# untracked +EOF + +test_expect_success 'status without relative paths' ' + + git config status.relativePaths false + (cd dir1 && git status) > output && + git diff expect output + +' + test_done