Skip to content
/ git Public
forked from git/git

Commit

Permalink
Merge branch 'cb/aix'
Browse files Browse the repository at this point in the history
* cb/aix:
  tests: don't rely on strerror text when testing rmdir failure
  dir.c: make git_fnmatch() not inline
  • Loading branch information
gitster committed Apr 3, 2014
2 parents 400ecca + 11b5390 commit 8ba87ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ int fnmatch_icase(const char *pattern, const char *string, int flags)
NULL);
}

inline int git_fnmatch(const struct pathspec_item *item,
const char *pattern, const char *string,
int prefix)
int git_fnmatch(const struct pathspec_item *item,
const char *pattern, const char *string,
int prefix)
{
if (prefix > 0) {
if (ps_strncmp(item, pattern, string, prefix))
Expand Down
3 changes: 1 addition & 2 deletions t/t3600-rm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,7 @@ test_expect_success 'checking out a commit after submodule removal needs manual
git submodule update &&
git checkout -q HEAD^ 2>actual &&
git checkout -q master 2>actual &&
echo "warning: unable to rmdir submod: Directory not empty" >expected &&
test_i18ncmp expected actual &&
test_i18ngrep "^warning: unable to rmdir submod:" actual &&
git status -s submod >actual &&
echo "?? submod/" >expected &&
test_cmp expected actual &&
Expand Down
3 changes: 1 addition & 2 deletions t/t7001-mv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,7 @@ test_expect_success 'checking out a commit before submodule moved needs manual u
git mv sub sub2 &&
git commit -m "moved sub to sub2" &&
git checkout -q HEAD^ 2>actual &&
echo "warning: unable to rmdir sub2: Directory not empty" >expected &&
test_i18ncmp expected actual &&
test_i18ngrep "^warning: unable to rmdir sub2:" actual &&
git status -s sub2 >actual &&
echo "?? sub2/" >expected &&
test_cmp expected actual &&
Expand Down

0 comments on commit 8ba87ad

Please sign in to comment.