Message ID | pull.1453.git.git.1734493992236.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | pathsec: make check for PATHSPEC_LITERAL more readable | expand |
Commit subject area: s/pathsec/pathspec/
diff --git a/pathspec.c b/pathspec.c index 0fc6f84a6e6..0af953d055d 100644 --- a/pathspec.c +++ b/pathspec.c @@ -313,7 +313,7 @@ static int get_global_magic(int element_magic) global_magic |= PATHSPEC_ICASE; if ((global_magic & PATHSPEC_LITERAL) && - (global_magic & ~PATHSPEC_LITERAL)) + (global_magic != PATHSPEC_LITERAL)) die(_("global 'literal' pathspec setting is incompatible " "with all other global pathspec settings"));