git: Don't use an empty pathspec when listing
An empty string as a pathspec element matches all paths, but git has
recently started complaining about it, as it could be problematic for
some operations like rm. In the future, it will be considered an error.
So this patch uses "." instead of the empty pathspec, as recommended.
d426430e6e
This commit is contained in:
parent
d7f0e4a265
commit
891a944381
3
git.py
3
git.py
@ -525,6 +525,9 @@ class Tree:
|
|||||||
cmd.t = None
|
cmd.t = None
|
||||||
|
|
||||||
cmd.arg(self.ref)
|
cmd.arg(self.ref)
|
||||||
|
if not path:
|
||||||
|
cmd.arg(".")
|
||||||
|
else:
|
||||||
cmd.arg(path)
|
cmd.arg(path)
|
||||||
|
|
||||||
for l in cmd.run():
|
for l in cmd.run():
|
||||||
|
Loading…
Reference in New Issue
Block a user