diff options
author | Ben Straub <bs@github.com> | 2012-11-30 12:52:42 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-30 13:12:16 -0800 |
commit | 4ec197f3049d203739066e0c2d2c5c39f78fd808 (patch) | |
tree | 94637d0def9f59554fd59efdaaec283e34dd9c26 /src/stash.c | |
parent | 10711769000d009189f83e468f25b719fa303086 (diff) | |
download | libgit2-4ec197f3049d203739066e0c2d2c5c39f78fd808.tar.gz |
Deploy GIT_SIGNATURE_INIT
Diffstat (limited to 'src/stash.c')
-rw-r--r-- | src/stash.c | 4 |
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; |