diff --git a/mkdocs_rss_plugin/util.py b/mkdocs_rss_plugin/util.py index eea9c74d..7a92dda4 100644 --- a/mkdocs_rss_plugin/util.py +++ b/mkdocs_rss_plugin/util.py @@ -149,14 +149,14 @@ def get_file_dates( date="short", format="%at", diff_filter="AR", - ) + ).split("\n")[-1] if not dt_updated: dt_updated = self.repo.log( in_page.file.abs_src_path, n=1, date="short", format="%at", - ) + ).split("\n")[-1] except GitCommandError as err: logging.warning( "[rss-plugin] Unable to read git logs of '%s'. Is git log readable?"