Code

Merge branch 'fl/send-email-outside'
[git.git] / builtin-send-pack.c
index 930e0fb3fdfee2293d0fca650d7139f09f2d381e..bb9c33a6506290edad096acaa52330dd48df6135 100644 (file)
@@ -537,7 +537,7 @@ static void verify_remote_names(int nr_heads, const char **heads)
        int i;
 
        for (i = 0; i < nr_heads; i++) {
-               const char *remote = strchr(heads[i], ':');
+               const char *remote = strrchr(heads[i], ':');
 
                remote = remote ? (remote + 1) : heads[i];
                switch (check_ref_format(remote)) {