summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-08-14 06:44:28 -0700
committerVicent Martí <vicent@github.com>2013-08-14 06:44:28 -0700
commit9d1751bf6e903821e87f331b8f63a2d5616a9d6c (patch)
tree46a55c8a20b76a0fb568b19c85d90b228b75512c /src
parentc4ded21e832a1af4496647a928c689d59c156604 (diff)
parent0b9ebb54ff9aab86bb858e1d2952efa4dcdafefa (diff)
downloadlibgit2-9d1751bf6e903821e87f331b8f63a2d5616a9d6c.tar.gz
Merge pull request #1783 from libgit2/cmn/relax-remote
remote: relax the url rules
Diffstat (limited to 'src')
-rw-r--r--src/remote.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/remote.c b/src/remote.c
index 158f3e938..0dda196df 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -272,12 +272,6 @@ int git_remote_load(git_remote **out, git_repository *repo, const char *name)
if ((error = git_config_get_string(&val, config, git_buf_cstr(&buf))) < 0)
goto cleanup;
- if (strlen(val) == 0) {
- giterr_set(GITERR_INVALID, "Malformed remote '%s' - missing URL", name);
- error = -1;
- goto cleanup;
- }
-
remote->repo = repo;
remote->url = git__strdup(val);
GITERR_CHECK_ALLOC(remote->url);