Commit f8baece754d24a6121d701e2bad1922c61cffe71

Justin Spahr-Summers 2012-11-05T10:42:10

Set GITERR_INVALID when encountering a NULL remote URL

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/remote.c b/src/remote.c
index 187e395..714e2f0 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -133,6 +133,7 @@ int git_remote_load(git_remote **out, git_repository *repo, const char *name)
 		goto cleanup;
 	
 	if (!val) {
+		geterr_set(GITERR_INVALID, "Malformed remote '%s' - missing URL", name);
 		error = -1;
 		goto cleanup;
 	}