stash: use GIT_ASSERT
diff --git a/src/stash.c b/src/stash.c
index 0d5dc43..8ee1273 100644
--- a/src/stash.c
+++ b/src/stash.c
@@ -546,7 +546,9 @@ int git_stash_save(
git_buf msg = GIT_BUF_INIT;
int error;
- assert(out && repo && stasher);
+ GIT_ASSERT_ARG(out);
+ GIT_ASSERT_ARG(repo);
+ GIT_ASSERT_ARG(stasher);
if ((error = git_repository__ensure_not_bare(repo, "stash save")) < 0)
return error;