summaryrefslogtreecommitdiff
path: root/src/submodule.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-11-08 13:25:51 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-11-08 13:28:27 +0100
commit209425ce26d777794e9995f757656c7731df087e (patch)
tree5e4788483721b5f1e17c83c15873c36f47f64806 /src/submodule.c
parent4e1b3b3b7186b017223b8302a51289ff92ccba25 (diff)
downloadlibgit2-cmn/remote-lookup.tar.gz
remote: rename _load() to _lookup()cmn/remote-lookup
This brings it in line with the rest of the lookup functions.
Diffstat (limited to 'src/submodule.c')
-rw-r--r--src/submodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/submodule.c b/src/submodule.c
index ccc8ad117..8dca0ae73 100644
--- a/src/submodule.c
+++ b/src/submodule.c
@@ -1876,7 +1876,7 @@ static int lookup_head_remote(git_remote **remote, git_repository *repo)
/* lookup remote of remote tracking branch name */
if (!(error = lookup_head_remote_key(&remote_name, repo)))
- error = git_remote_load(remote, repo, remote_name.ptr);
+ error = git_remote_lookup(remote, repo, remote_name.ptr);
git_buf_free(&remote_name);
@@ -1890,7 +1890,7 @@ static int lookup_default_remote(git_remote **remote, git_repository *repo)
/* if that failed, use 'origin' instead */
if (error == GIT_ENOTFOUND)
- error = git_remote_load(remote, repo, "origin");
+ error = git_remote_lookup(remote, repo, "origin");
if (error == GIT_ENOTFOUND)
giterr_set(