summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-04-05 22:06:25 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2020-11-27 11:09:21 +0000
commit9522de900f38119c005cb53a77fe61fd0139857e (patch)
treea134449077e1fb129f246a8714537ae445ce8a6c
parent9cf2c9dc1e08f77bb74bfc1bc8feaabcde91d20e (diff)
downloadlibgit2-9522de900f38119c005cb53a77fe61fd0139857e.tar.gz
stash: use GIT_ASSERT
-rw-r--r--src/stash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stash.c b/src/stash.c
index 0d5dc4351..8ee127322 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;