diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2013-08-21 13:16:17 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2013-08-27 16:57:15 +0200 |
| commit | b83c92dd6fe11adae0ff29e1db381c31f0f88cb7 (patch) | |
| tree | 98a8ad28bb572425e2a1865ddd162922c09024b1 /src/remote.c | |
| parent | ba7cc8d2f714875736a3c6f5e9cc720170a2166e (diff) | |
| download | libgit2-b83c92dd6fe11adae0ff29e1db381c31f0f88cb7.tar.gz | |
remote: Assert proper GIT_DIRECTION_XXXX values
Diffstat (limited to 'src/remote.c')
| -rw-r--r-- | src/remote.c | 2 |
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; } |
