summaryrefslogtreecommitdiff
path: root/src/stash.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-30 12:52:42 -0800
committerBen Straub <bs@github.com>2012-11-30 13:12:16 -0800
commit4ec197f3049d203739066e0c2d2c5c39f78fd808 (patch)
tree94637d0def9f59554fd59efdaaec283e34dd9c26 /src/stash.c
parent10711769000d009189f83e468f25b719fa303086 (diff)
downloadlibgit2-4ec197f3049d203739066e0c2d2c5c39f78fd808.tar.gz
Deploy GIT_SIGNATURE_INIT
Diffstat (limited to 'src/stash.c')
-rw-r--r--src/stash.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stash.c b/src/stash.c
index 98c7a7c93..67fa49838 100644
--- a/src/stash.c
+++ b/src/stash.c
@@ -14,6 +14,7 @@
#include "git2/stash.h"
#include "git2/status.h"
#include "git2/checkout.h"
+#include "signature.h"
static int create_error(int error, const char *msg)
{
@@ -522,6 +523,9 @@ int git_stash_save(
assert(out && repo && stasher);
+ if (!git_signature__has_valid_version(stasher))
+ return -1;
+
if ((error = ensure_non_bare_repository(repo)) < 0)
return error;