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
24
24
features = [" https" ]
25
25
26
26
[dev-dependencies ]
27
- git-testtools = " 0.7.1 "
27
+ git-testtools = " 0.8.0 "
28
28
tempdir = " 0.3.5"
29
29
serial_test = " 0.6.0"
Original file line number Diff line number Diff line change 2
2
3
3
set -eu -o pipefail
4
4
5
- parts=" tests/fixtures/index-parts"
5
+ parts=" ${1 :? first argument is the repoitory root} / tests/fixtures/index-parts"
6
6
commit_list=$parts /commit.list
7
7
8
8
git init
9
- tar -x $parts /init.* .tar
9
+ tar -x < $parts /init.* .tar
10
10
git add . && git commit -m " initial commit"
11
11
12
12
13
13
while read -r commit; do
14
14
patch -p1 < " $parts /$commit .diff"
15
+ git add .
15
16
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 {
5
5
use crate :: index:: index_ro;
6
6
7
7
#[ test]
8
- #[ ignore]
9
8
fn addition ( ) {
10
9
let _index = index_ro ( ) ;
11
10
}
12
11
}
13
12
14
13
fn 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 ( ) ;
16
21
Index :: from_path_or_cloned ( dir) . unwrap ( )
17
22
}
You can’t perform that action at this time.
0 commit comments