summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/remote.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c
index 7677e56b2..14ed740a8 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -534,6 +534,8 @@ const char* git_remote__urlfordirection(git_remote *remote, int direction)
{
assert(remote);
+ assert(direction == GIT_DIRECTION_FETCH || direction == GIT_DIRECTION_PUSH);
+
if (direction == GIT_DIRECTION_FETCH) {
return remote->url;
}