aboutsummaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-24 11:04:55 -0700
committerJunio C Hamano <junkio@cox.net>2006-05-24 11:04:55 -0700
commit2464294498da970de03c28310c0afa24aec4b76b (patch)
treea436ca910d2de1841aa062a5e6fe721753238c89 /connect.c
parent376bb3a352d6512a318706c2fba5737ffd7cc92b (diff)
parent9546010b7bbc25e037029a7dd83de9c57b7a935c (diff)
downloadgit-2464294498da970de03c28310c0afa24aec4b76b.tar.gz
git-2464294498da970de03c28310c0afa24aec4b76b.tar.xz
Merge branch 'jc/fetch-sorted'
* jc/fetch-sorted: fetch-pack: output refs in the order they were given on the command line.
Diffstat (limited to 'connect.c')
-rw-r--r--connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/connect.c b/connect.c
index 6a8f8a6a2..54f7bf791 100644
--- a/connect.c
+++ b/connect.c
@@ -100,7 +100,7 @@ int path_match(const char *path, int nr, char **match)
if (pathlen > len && path[pathlen - len - 1] != '/')
continue;
*s = 0;
- return 1;
+ return (i + 1);
}
return 0;
}