From cfe802984f175351f0b1fdeeb372839e28a77155 Mon Sep 17 00:00:00 2001 From: Paul Hoger Date: Thu, 23 Jan 2025 16:26:03 +0100 Subject: [PATCH] Add hyphens to treat params as Git objects and not files --- jupyterlab_git/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterlab_git/git.py b/jupyterlab_git/git.py index e3b3bac2..2859bfb5 100644 --- a/jupyterlab_git/git.py +++ b/jupyterlab_git/git.py @@ -312,7 +312,7 @@ async def changed_files(self, path, base=None, remote=None, single_commit=None): elif base == "INDEX": cmd = ["git", "diff", "--staged", remote, "--name-only", "-z"] else: - cmd = ["git", "diff", base, remote, "--name-only", "-z"] + cmd = ["git", "diff", base, remote, "--name-only", "-z", "--"] else: raise tornado.web.HTTPError( 400, "Either single_commit or (base and remote) must be provided"