Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Retire diff-helper.
[gitweb.git]
/
read-tree.c
diff --git
a/read-tree.c
b/read-tree.c
index 6a5c08c4c6903fec45cbe37a63f0bc42fbae53bc..ca808739dba4235f0f8a5777ff4bbfe4443d1d27 100644
(file)
--- a/
read-tree.c
+++ b/
read-tree.c
@@
-655,7
+655,7
@@
int main(int argc, char **argv)
die("failed to unpack tree object %s", arg);
stage++;
}
- if (
update
&& !merge)
+ if (
(update||index_only)
&& !merge)
usage(read_tree_usage);
if (merge && !fn) {
if (stage < 2)