diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-11 15:28:44 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-22 05:32:38 -0700 |
commit | 9546010b7bbc25e037029a7dd83de9c57b7a935c (patch) | |
tree | 326b7ee4f10f7bd3979bf9f1e1c74f2ad5dde645 /connect.c | |
parent | 5e363541d0431b640e4bbbafb2941d1c64fa13c4 (diff) | |
download | git-9546010b7bbc25e037029a7dd83de9c57b7a935c.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |