File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ test_expect_success 'using invalid commit with -C' '
57
57
'
58
58
59
59
test_expect_success ' nothing to commit' '
60
+ git reset --hard &&
60
61
test_must_fail git commit -m initial
61
62
'
62
63
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ test_expect_success 'objects in packs marked .keep are not repacked' '
17
17
# The second pack will contain the excluded object
18
18
packsha1=$(git rev-list --objects --all | grep file2 |
19
19
git pack-objects pack) &&
20
- touch -r pack-$packsha1.pack pack-$packsha1.keep &&
20
+ > pack-$packsha1.keep &&
21
21
objsha1=$(git verify-pack -v pack-$packsha1.idx | head -n 1 |
22
22
sed -e "s/^\([0-9a-f]\{40\}\).*/\1/") &&
23
23
mv pack-* .git/objects/pack/ &&
You can’t perform that action at this time.
0 commit comments