Skip to content

Commit 055b661

Browse files
dotdashgitster
authored andcommitted
Fix section about backdating tags in the git-tag docs
The tagger is equal to the committer, not the author, so GIT_COMMITTER_DATE is the right environment variable to use, not GIT_AUTHOR_DATE. Signed-off-by: Björn Steinbrink <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d4ba07c commit 055b661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-tag.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,14 @@ the tag object affects, for example, the ordering of tags in the
226226
gitweb interface.
227227

228228
To set the date used in future tag objects, set the environment
229-
variable GIT_AUTHOR_DATE to one or more of the date and time. The
229+
variable GIT_COMMITTER_DATE to one or more of the date and time. The
230230
date and time can be specified in a number of ways; the most common
231231
is "YYYY-MM-DD HH:MM".
232232

233233
An example follows.
234234

235235
------------
236-
$ GIT_AUTHOR_DATE="2006-10-02 10:31" git tag -s v1.0.1
236+
$ GIT_COMMITTER_DATE="2006-10-02 10:31" git tag -s v1.0.1
237237
------------
238238

239239

0 commit comments

Comments
 (0)