summaryrefslogtreecommitdiff
path: root/t/t9824-git-p4-git-lfs.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-05-10 20:40:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-10 20:40:29 (GMT)
commit7a959426b61e673032861f7a89ce9c5254bd5830 (patch)
treec9196073c02b64935b55b7ba71e3d27aff4f5f43 /t/t9824-git-p4-git-lfs.sh
parent934908ae5bcd7b9944d925f73e05c60b2687c8b7 (diff)
parent82f2567e3d01a6eeb4c6a0b9139232034de6e60f (diff)
downloadgit-7a959426b61e673032861f7a89ce9c5254bd5830.zip
git-7a959426b61e673032861f7a89ce9c5254bd5830.tar.gz
git-7a959426b61e673032861f7a89ce9c5254bd5830.tar.bz2
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-xt/t9824-git-p4-git-lfs.sh4
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 3fc6790..110a7e7 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" &&