summaryrefslogtreecommitdiff
path: root/src/repository.c
diff options
context:
space:
mode:
authorVictor Garcia <victor@tuenti.com>2013-11-07 14:16:20 +0100
committerVictor Garcia <victor@tuenti.com>2013-11-07 14:16:20 +0100
commit0fe522d1057aef064084a22d116f7c225948a3bd (patch)
tree1fe257f593d9d5c2f220897eabd5a3660bba47bd /src/repository.c
parente87d9d3d4d8de9c048476387931c4ac57d1c2b73 (diff)
downloadlibgit2-0fe522d1057aef064084a22d116f7c225948a3bd.tar.gz
allowing create remote with custom fetch spec
Diffstat (limited to 'src/repository.c')
-rw-r--r--src/repository.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.c b/src/repository.c
index dcc02e4fb..f1eff165c 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1473,7 +1473,7 @@ static int repo_init_create_origin(git_repository *repo, const char *url)
int error;
git_remote *remote;
- if (!(error = git_remote_create(&remote, repo, GIT_REMOTE_ORIGIN, url))) {
+ if (!(error = git_remote_create(&remote, repo, GIT_REMOTE_ORIGIN, url, NULL))) {
git_remote_free(remote);
}