mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-20 10:02:36 +00:00
remote: Assert proper GIT_DIRECTION_XXXX values
This commit is contained in:
parent
ba7cc8d2f7
commit
b83c92dd6f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user