summaryrefslogtreecommitdiff
path: root/rev-tree.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-21 16:58:24 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-21 16:58:24 (GMT)
commit94dfb7f2e38fde5014fe50f9e74bde7d2d264184 (patch)
tree938d695a43c5f1f7be45e80c62e965bdcffb68c5 /rev-tree.c
parentc5bac17ad21c8e79fcca21c366832e75be095322 (diff)
downloadgit-94dfb7f2e38fde5014fe50f9e74bde7d2d264184.zip
git-94dfb7f2e38fde5014fe50f9e74bde7d2d264184.tar.gz
git-94dfb7f2e38fde5014fe50f9e74bde7d2d264184.tar.bz2
Fix NSEC compile problem, and properly parse the rev-tree cmd line.
The rev-tree thing just happened to work. It shouldn't have.
Diffstat (limited to 'rev-tree.c')
-rw-r--r--rev-tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rev-tree.c b/rev-tree.c
index ebeceb0..03c900f 100644
--- a/rev-tree.c
+++ b/rev-tree.c
@@ -89,8 +89,7 @@ int main(int argc, char **argv)
char *arg = argv[i];
if (!strcmp(arg, "--cache")) {
- read_cache_file(argv[2]);
- i++;
+ read_cache_file(argv[++i]);
continue;
}