diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-16 23:21:29 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-16 23:21:53 -0500 |
commit | 6b2ea90966fd090e3b134ec57b85a8adfe4b89be (patch) | |
tree | 85bd409fce85d7af248c8346d80ab6d5369e207f | |
parent | 86685f8f1d586b0201ab51d8e5923379967f4e74 (diff) | |
download | libgit2-6b2ea90966fd090e3b134ec57b85a8adfe4b89be.tar.gz |
tag: set validity to 0 by defaultethomson/tag_valid
`git_tag_name_is_valid` needs to set validity to 0 when it
short-circuits.
-rw-r--r-- | src/tag.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -539,6 +539,8 @@ int git_tag_name_is_valid(int *valid, const char *name) GIT_ASSERT(valid); + *valid = 0; + /* * Discourage tag name starting with dash, * https://github.com/git/git/commit/4f0accd638b8d2 |