Skip to content

Commit 8ba87ad

Browse files
committed
Merge branch 'cb/aix'
* cb/aix: tests: don't rely on strerror text when testing rmdir failure dir.c: make git_fnmatch() not inline
2 parents 400ecca + 11b5390 commit 8ba87ad

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

dir.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ int fnmatch_icase(const char *pattern, const char *string, int flags)
5454
NULL);
5555
}
5656

57-
inline int git_fnmatch(const struct pathspec_item *item,
58-
const char *pattern, const char *string,
59-
int prefix)
57+
int git_fnmatch(const struct pathspec_item *item,
58+
const char *pattern, const char *string,
59+
int prefix)
6060
{
6161
if (prefix > 0) {
6262
if (ps_strncmp(item, pattern, string, prefix))

t/t3600-rm.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,7 @@ test_expect_success 'checking out a commit after submodule removal needs manual
711711
git submodule update &&
712712
git checkout -q HEAD^ 2>actual &&
713713
git checkout -q master 2>actual &&
714-
echo "warning: unable to rmdir submod: Directory not empty" >expected &&
715-
test_i18ncmp expected actual &&
714+
test_i18ngrep "^warning: unable to rmdir submod:" actual &&
716715
git status -s submod >actual &&
717716
echo "?? submod/" >expected &&
718717
test_cmp expected actual &&

t/t7001-mv.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,7 @@ test_expect_success 'checking out a commit before submodule moved needs manual u
447447
git mv sub sub2 &&
448448
git commit -m "moved sub to sub2" &&
449449
git checkout -q HEAD^ 2>actual &&
450-
echo "warning: unable to rmdir sub2: Directory not empty" >expected &&
451-
test_i18ncmp expected actual &&
450+
test_i18ngrep "^warning: unable to rmdir sub2:" actual &&
452451
git status -s sub2 >actual &&
453452
echo "?? sub2/" >expected &&
454453
test_cmp expected actual &&

0 commit comments

Comments
 (0)