File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,6 @@ default-features = false
2424features = [" https" ]
2525
2626[dev-dependencies ]
27- git-testtools = " 0.7.1 "
27+ git-testtools = " 0.8.0 "
2828tempdir = " 0.3.5"
2929serial_test = " 0.6.0"
Original file line number Diff line number Diff line change 22
33set -eu -o pipefail
44
5- parts=" tests/fixtures/index-parts"
5+ parts=" ${1 :? first argument is the repoitory root} / tests/fixtures/index-parts"
66commit_list=$parts /commit.list
77
88git init
9- tar -x $parts /init.* .tar
9+ tar -x < $parts /init.* .tar
1010git add . && git commit -m " initial commit"
1111
1212
1313while read -r commit; do
1414 patch -p1 < " $parts /$commit .diff"
15+ git add .
1516 git commit -F " $parts /$commit .msg"
16- done < " $commit_list "
17+ done < " $commit_list "
18+ git gc
Original file line number Diff line number Diff line change @@ -5,13 +5,18 @@ mod changes_from_objects {
55 use crate :: index:: index_ro;
66
77 #[ test]
8- #[ ignore]
98 fn addition ( ) {
109 let _index = index_ro ( ) ;
1110 }
1211}
1312
1413fn index_ro ( ) -> Index {
15- let dir = git_testtools:: scripted_fixture_repo_read_only ( "make-index-from-parts.sh" ) . unwrap ( ) ;
14+ let dir = git_testtools:: scripted_fixture_repo_read_only_with_args (
15+ "make-index-from-parts.sh" ,
16+ std:: env:: current_dir ( )
17+ . ok ( )
18+ . map ( |p| p. to_str ( ) . unwrap ( ) . to_owned ( ) ) ,
19+ )
20+ . unwrap ( ) ;
1621 Index :: from_path_or_cloned ( dir) . unwrap ( )
1722}
You can’t perform that action at this time.
0 commit comments