Skip to content

Commit 6f91719

Browse files
committed
Apply @nsoranzo's improvement for git diff.
See also galaxyproject/tools-iuc#961 (comment).
1 parent 34538de commit 6f91719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

planemo/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def command_clone(ctx, src, dest, bare=False, branch=None):
4747

4848
def diff(ctx, directory, range):
4949
"""Produce a list of diff-ed files for commit range."""
50-
cmd_template = "cd '%s' && git diff --name-only '%s'"
50+
cmd_template = "cd '%s' && git diff --name-only '%s' --"
5151
cmd = cmd_template % (directory, range)
5252
stdout, _ = io.communicate(
5353
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE

0 commit comments

Comments
 (0)