Skip to content

Commit

Permalink
Merge sphinx-contrib#36: compat with older git
Browse files Browse the repository at this point in the history
Use '-s' instead of '--no-patch' as it was only introduced as a 'git
show' parameter in Git 1.8.4.
This fixes sphinx-contrib#31
  • Loading branch information
muggenhor committed Sep 12, 2019
2 parents 86a28dc + 18aeda1 commit 1e005e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxcontrib/versioning/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def filter_and_date(local_root, conf_rel_paths, commits):
dates_paths[commit] = [None, output.splitlines()[0].strip()]

# Get timestamps by groups of 50.
command_prefix = ['git', 'show', '--no-patch', '--pretty=format:%ct']
command_prefix = ['git', 'show', '-s', '--pretty=format:%ct']
for commits_group in chunk(dates_paths, 50):
command = command_prefix + commits_group
output = run_command(local_root, command)
Expand Down

0 comments on commit 1e005e5

Please sign in to comment.