Skip to content

Commit cdc40bd

Browse files
committed
Merge branch 'jk/test-fixes'
* jk/test-fixes: t7700: do not use "touch" unnecessarily t7501: fix "empty commit" test with NO_PERL
2 parents 017f804 + a033233 commit cdc40bd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

t/t7501-commit.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ test_expect_success 'using invalid commit with -C' '
5757
'
5858

5959
test_expect_success 'nothing to commit' '
60+
git reset --hard &&
6061
test_must_fail git commit -m initial
6162
'
6263

t/t7700-repack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test_expect_success 'objects in packs marked .keep are not repacked' '
1717
# The second pack will contain the excluded object
1818
packsha1=$(git rev-list --objects --all | grep file2 |
1919
git pack-objects pack) &&
20-
touch -r pack-$packsha1.pack pack-$packsha1.keep &&
20+
>pack-$packsha1.keep &&
2121
objsha1=$(git verify-pack -v pack-$packsha1.idx | head -n 1 |
2222
sed -e "s/^\([0-9a-f]\{40\}\).*/\1/") &&
2323
mv pack-* .git/objects/pack/ &&

0 commit comments

Comments
 (0)