| 3003 | } |
| 3004 | |
| 3005 | int valid_remote_name(const char *name) |
| 3006 | { |
| 3007 | int result; |
| 3008 | struct strbuf refspec = STRBUF_INIT; |
| 3009 | strbuf_addf(&refspec, "refs/heads/test:refs/remotes/%s/test", name); |
| 3010 | result = valid_fetch_refspec(refspec.buf); |
| 3011 | strbuf_release(&refspec); |
| 3012 | return result; |
| 3013 | } |
no test coverage detected