rename got_clone() to got_fetch()
diff --git a/got/got.c b/got/got.c
index c2cebdb..d5f868e 100644
--- a/got/got.c
+++ b/got/got.c
@@ -993,7 +993,7 @@ cmd_clone(int argc, char *argv[])
dirname = argv[1];
else
usage_clone();
- return got_clone(argv[0], branch_filter, dirname);
+ return got_fetch(argv[0], branch_filter, dirname);
}
static const struct got_error *
diff --git a/include/got_fetch.h b/include/got_fetch.h
index 6ffe7e5..b666240 100644
--- a/include/got_fetch.h
+++ b/include/got_fetch.h
@@ -14,4 +14,4 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-const struct got_error* got_clone(char *, char *, char *);
+const struct got_error* got_fetch(char *, char *, char *);
diff --git a/lib/fetch.c b/lib/fetch.c
index d58bd36..6867529 100644
--- a/lib/fetch.c
+++ b/lib/fetch.c
@@ -248,7 +248,7 @@ got_parse_uri(char *uri, char *proto, char *host, char *port, char *path, char *
}
const struct got_error*
-got_clone(char *uri, char *branch_filter, char *destdir)
+got_fetch(char *uri, char *branch_filter, char *destdir)
{
char proto[GOT_PROTOMAX], host[GOT_HOSTMAX], port[GOT_PORTMAX];
char repo[GOT_REPOMAX], path[GOT_PATHMAX];