summaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-11 22:28:44 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-22 12:32:38 (GMT)
commit9546010b7bbc25e037029a7dd83de9c57b7a935c (patch)
tree326b7ee4f10f7bd3979bf9f1e1c74f2ad5dde645 /connect.c
parent5e363541d0431b640e4bbbafb2941d1c64fa13c4 (diff)
downloadgit-9546010b7bbc25e037029a7dd83de9c57b7a935c.zip
git-9546010b7bbc25e037029a7dd83de9c57b7a935c.tar.gz
git-9546010b7bbc25e037029a7dd83de9c57b7a935c.tar.bz2
fetch-pack: output refs in the order they were given on the command line.
Currently, fetched refs are output in the order the remote side happened to send them. This changes the order to match the order of refs that were given on the command line. To the existing core callers (git-fetch and git-clone) this does not make any difference, but for other Porcelain use, it would be more intuitive. Signed-off-by: Junio C Hamano <junkio@cox.net>
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 6a8f8a6..54f7bf7 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;
}