Skip to content

Commit

Permalink
Improve compatibility with older git versions
Browse files Browse the repository at this point in the history
--no-patch was added in Git 1.8.4 and is a synonym for -s
Fixes sphinx-contrib#31
  • Loading branch information
pilou- committed Mar 13, 2017
1 parent 920edec commit 18aeda1
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 18aeda1

Please sign in to comment.