]> git.ipfire.org Git - thirdparty/git.git/commitdiff
refspec: fix typo in comment
authorK Jayatheerth <jayatheerthkulkarni2005@gmail.com>
Tue, 24 Mar 2026 01:57:34 +0000 (07:27 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Mar 2026 04:27:17 +0000 (21:27 -0700)
Fix a long-standing typo in a comment: "refpsecs" -> "refspecs".

Signed-off-by: K Jayatheerth <jayatheerthkulkarni2005@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refspec.c

index 0775358d96cacd9f53f34c6a2e61a46dcbc530fe..fb89bce1db23fb83002686ee953d9ce31c3b7fbb 100644 (file)
--- a/refspec.c
+++ b/refspec.c
@@ -85,7 +85,7 @@ static int parse_refspec(struct refspec_item *item, const char *refspec, int fet
                if (!*item->src)
                        return 0; /* negative refspecs must not be empty */
                else if (llen == the_hash_algo->hexsz && !get_oid_hex(item->src, &unused))
-                       return 0; /* negative refpsecs cannot be exact sha1 */
+                       return 0; /* negative refspecs cannot be exact sha1 */
                else if (!check_refname_format(item->src, flags))
                        ; /* valid looking ref is ok */
                else