Mercurial > hg
comparison tests/test-convert-git.t @ 32902:642feee29d70
tests: protect tests involving git ext::sh with git-ext-sh
author | Sean Farley <sean@farley.io> |
---|---|
date | Thu, 15 Jun 2017 17:14:53 -0700 |
parents | 8fa3ab6221b9 |
children | 846942fd6d15 |
comparison
equal
deleted
inserted
replaced
32901:559db66dead5 | 32902:642feee29d70 |
---|---|
946 $ TREE_OBJ=72/49f083d2a63a41cc737764a86981eb5f3e4635 | 946 $ TREE_OBJ=72/49f083d2a63a41cc737764a86981eb5f3e4635 |
947 $ mv git-repo4/.git/objects/$TREE_OBJ git-repo4/.git/objects/$TREE_OBJ.tmp | 947 $ mv git-repo4/.git/objects/$TREE_OBJ git-repo4/.git/objects/$TREE_OBJ.tmp |
948 $ hg convert git-repo4 git-repo4-broken-hg 2>&1 | grep 'abort:' | 948 $ hg convert git-repo4 git-repo4-broken-hg 2>&1 | grep 'abort:' |
949 abort: cannot read changes in 1c0ce3c5886f83a1d78a7b517cdff5cf9ca17bdd | 949 abort: cannot read changes in 1c0ce3c5886f83a1d78a7b517cdff5cf9ca17bdd |
950 | 950 |
951 #if no-windows | 951 #if no-windows git19 |
952 | 952 |
953 test for escaping the repo name (CVE-2016-3069) | 953 test for escaping the repo name (CVE-2016-3069) |
954 | 954 |
955 $ git init '`echo pwned >COMMAND-INJECTION`' | 955 $ git init '`echo pwned >COMMAND-INJECTION`' |
956 Initialized empty Git repository in $TESTTMP/`echo pwned >COMMAND-INJECTION`/.git/ | 956 Initialized empty Git repository in $TESTTMP/`echo pwned >COMMAND-INJECTION`/.git/ |