Commit 992eb9d8966327c12d7e3812a2cae527f621e4ba

Tracey Emery 2020-02-07T17:02:17

spelling

diff --git a/CHANGES b/CHANGES
index 40d65b8..ee9deac 100644
--- a/CHANGES
+++ b/CHANGES
@@ -146,7 +146,7 @@
 * got 0.7; 2019-08-13
 - properly parse timestamps in commit objects as UTC (patch by Hiltjo Posthuma)
 - strip Git GPG signatures from log messages
-- fix regression: don't try to parse "leightweight" tags as real tag objects
+- fix regression: don't try to parse "lightweight" tags as real tag objects
 
 * got 0.6; 2019-08-13
 - 'got log' and 'tog log' now display tags in addition to branch references
diff --git a/lib/object.c b/lib/object.c
index b0ab435..174d3ab 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -1415,7 +1415,7 @@ open_tag(struct got_tag_object **tag, struct got_repository *repo,
 				goto done;
 		}
 
-		/* Beware of "leightweight" tags: Check object type first. */
+		/* Beware of "lightweight" tags: Check object type first. */
 		err = read_packed_object_privsep(&obj, repo, pack, packidx,
 		    idx, id);
 		if (err)
diff --git a/regress/cmdline/log.sh b/regress/cmdline/log.sh
index 62d97e2..a903a0e 100755
--- a/regress/cmdline/log.sh
+++ b/regress/cmdline/log.sh
@@ -190,7 +190,7 @@ function test_log_tag {
 		return 1
 	fi
 
-	# test a "leightweight" tag
+	# test a "lightweight" tag
 	(cd $testroot/repo && git tag $tag2)
 
 	echo "commit $commit_id (master, tags/$tag, tags/$tag2)" \