Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jh/verify-index-checksum-only-in-fsck'
[gitweb.git]
/
pathspec.c
diff --git
a/pathspec.c
b/pathspec.c
index 69ef86b85a7735df428b8cab9f9cce477a4fcd89..50f76fff458e45f57ae67c3474de8378f390f978 100644
(file)
--- a/
pathspec.c
+++ b/
pathspec.c
@@
-505,7
+505,7
@@
static void init_pathspec_item(struct pathspec_item *item, unsigned flags,
* original. Useful for passing to another command.
*/
if ((flags & PATHSPEC_PREFIX_ORIGIN) &&
-
prefixlen &&
!get_literal_global()) {
+ !get_literal_global()) {
struct strbuf sb = STRBUF_INIT;
/* Preserve the actual prefix length of each pattern */