diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-10 13:40:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-10 13:40:29 -0700 |
commit | 7a959426b61e673032861f7a89ce9c5254bd5830 (patch) | |
tree | c9196073c02b64935b55b7ba71e3d27aff4f5f43 /t/t9824-git-p4-git-lfs.sh | |
parent | 934908ae5bcd7b9944d925f73e05c60b2687c8b7 (diff) | |
parent | 82f2567e3d01a6eeb4c6a0b9139232034de6e60f (diff) | |
download | git-7a959426b61e673032861f7a89ce9c5254bd5830.tar.gz |
Merge branch 'ls/p4-lfs'
Recent update to Git LFS broke "git p4" by changing the output from
its "lfs pointer" subcommand.
* ls/p4-lfs:
git-p4: fix Git LFS pointer parsing
travis-ci: express Linux/OS X dependency versions more clearly
travis-ci: update Git-LFS and P4 to the latest version
Diffstat (limited to 't/t9824-git-p4-git-lfs.sh')
-rwxr-xr-x | t/t9824-git-p4-git-lfs.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t9824-git-p4-git-lfs.sh b/t/t9824-git-p4-git-lfs.sh index 3fc6790b07..110a7e7924 100755 --- a/t/t9824-git-p4-git-lfs.sh +++ b/t/t9824-git-p4-git-lfs.sh @@ -13,6 +13,10 @@ test_file_in_lfs () { FILE="$1" && SIZE="$2" && EXPECTED_CONTENT="$3" && + sed -n '1,1 p' "$FILE" | grep "^version " && + sed -n '2,2 p' "$FILE" | grep "^oid " && + sed -n '3,3 p' "$FILE" | grep "^size " && + test_line_count = 3 "$FILE" && cat "$FILE" | grep "size $SIZE" && HASH=$(cat "$FILE" | grep "oid sha256:" | sed -e "s/oid sha256://g") && LFS_FILE=".git/lfs/objects/$(echo "$HASH" | cut -c1-2)/$(echo "$HASH" | cut -c3-4)/$HASH" && |