Commit b83c92dd by nulltoken

remote: Assert proper GIT_DIRECTION_XXXX values

parent ba7cc8d2
...@@ -534,6 +534,8 @@ const char* git_remote__urlfordirection(git_remote *remote, int direction) ...@@ -534,6 +534,8 @@ const char* git_remote__urlfordirection(git_remote *remote, int direction)
{ {
assert(remote); assert(remote);
assert(direction == GIT_DIRECTION_FETCH || direction == GIT_DIRECTION_PUSH);
if (direction == GIT_DIRECTION_FETCH) { if (direction == GIT_DIRECTION_FETCH) {
return remote->url; return remote->url;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment