projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] git-merge-cache -q doesn't complain about failing merge program
[git.git]
/
connect.c
diff --git
a/connect.c
b/connect.c
index
dcbbefa
..
a910af9
100644
(file)
--- a/
connect.c
+++ b/
connect.c
@@
-119,8
+119,10
@@
static int git_tcp_connect(int fd[2], const char *prog, char *host, char *path)
end = host;
colon = strchr(end, ':');
- if (colon)
+ if (colon) {
+ *colon = 0;
port = colon + 1;
+ }
memset(&hints, 0, sizeof(hints));
hints.ai_socktype = SOCK_STREAM;