Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pathspec: make --literal-pathspecs disable pathspec magic
[gitweb.git]
/
pathspec.c
diff --git
a/pathspec.c
b/pathspec.c
index 6a16938cb65936fd1df816b149408daa57945c55..b6d8e74277e36c451b4eebe671501590a385b629 100644
(file)
--- a/
pathspec.c
+++ b/
pathspec.c
@@
-103,7
+103,7
@@
static unsigned prefix_pathspec(struct pathspec_item *item,
if (literal_global)
global_magic |= PATHSPEC_LITERAL;
- if (elt[0] != ':') {
+ if (elt[0] != ':'
|| literal_global
) {
; /* nothing to do */
} else if (elt[1] == '(') {
/* longhand */