Commit 9522de900f38119c005cb53a77fe61fd0139857e

Edward Thomson 2020-04-05T22:06:25

stash: use GIT_ASSERT

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;