[PATCH 1/5] tag -v: use ‘git verify-tag’ without dash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is not much reason to avoid dashed command names here except
setting a good example, but setting a good example is reason enough.

Signed-off-by: Jonathan Nieder <jrnieder@xxxxxxxxx>
---
 builtin/tag.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/builtin/tag.c b/builtin/tag.c
index 4ef1c4f..d56c882 100644
--- a/builtin/tag.c
+++ b/builtin/tag.c
@@ -147,9 +147,9 @@ static int delete_tag(const char *name, const char *ref,
 static int verify_tag(const char *name, const char *ref,
 				const unsigned char *sha1)
 {
-	const char *argv_verify_tag[] = {"git-verify-tag",
+	const char *argv_verify_tag[] = {"git", "verify-tag",
 					"-v", "SHA1_HEX", NULL};
-	argv_verify_tag[2] = sha1_to_hex(sha1);
+	argv_verify_tag[3] = sha1_to_hex(sha1);
 
 	if (run_command_v_opt(argv_verify_tag, 0))
 		return error("could not verify the tag '%s'", name);
-- 
1.7.0.2

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]