aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 6af2acd..b3aa84f 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -2427,7 +2427,7 @@ def git_range_to_patches(gitdir: Optional[str], start: str, end: str,
extrahdrs: Optional[List[Tuple[str, str]]] = None,
keepdate: bool = False) -> List[Tuple[str, email.message.Message]]:
patches = list()
- commits = git_get_command_lines(gitdir, ['rev-list', f'{start}..{end}'])
+ commits = git_get_command_lines(gitdir, ['rev-list', '--reverse', f'{start}..{end}'])
if not commits:
raise RuntimeError(f'Could not run rev-list {start}..{end}')
for commit in commits: