Skip to content

Commit 66d7ff5

Browse files
committed
Fix man page date check failing on shallow clones
The update-man-date target uses git log to find when man pages were last modified. With the default shallow clone (fetch-depth=1), git log returns HEAD instead, causing the check to fail whenever HEAD's commit date in JST differs from the stored man page date.
1 parent 3aa8927 commit 66d7ff5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/check_misc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ jobs:
8484

8585
- name: Check if date in man pages is up-to-date
8686
run: |
87+
# update-man-date uses git log to find when man pages were last
88+
# modified, which needs more history than the shallow clone provides.
89+
git fetch --no-tags --deepen=100 origin HEAD
8790
make V=1 GIT=git BASERUBY=ruby update-man-date
8891
git diff --color --no-ext-diff --ignore-submodules --exit-code -- man
8992

0 commit comments

Comments
 (0)