Skip to content

Commit

Permalink
better path handling in log command
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jan 12, 2015
1 parent ebfaddd commit d74ca00
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/geogigpy/cliconnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,12 @@ def log(self, tip, sincecommit = None, until = None, since = None, path = None,
commits = []
param = tip if sincecommit is None else (sincecommit + ".." + tip)
commands = ['rev-list', param]
if path is not None:
commands.extend(["-p", path])
if path:
if isinstance(path, list):
commands.append("-p")
commands.extend(path)
else:
commands.extend(["-p", path])
if until is not None:
commands.extend(["--until", until])
if since is not None:
Expand Down

0 comments on commit d74ca00

Please sign in to comment.