Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Document --unified/-U option
[gitweb.git]
/
builtin-ls-files.c
diff --git
a/builtin-ls-files.c
b/builtin-ls-files.c
index 5398a41415372b07fa1fdb43c26b5570e9d990b8..61577ea13ffdf0143dcb8a13c37ae49c1f8f2018 100644
(file)
--- a/
builtin-ls-files.c
+++ b/
builtin-ls-files.c
@@
-470,7
+470,7
@@
int cmd_ls_files(int argc, const char **argv, const char *prefix)
}
if (require_work_tree &&
- (
is_bare_repository
() || is_inside_git_dir()))
+ (
!is_inside_work_tree
() || is_inside_git_dir()))
die("This operation must be run in a work tree");
pathspec = get_pathspec(prefix, argv + i);