Skip to content

Commit 7b24a9c

Browse files
fcollonvalFrederic Collonval
authored andcommitted
WIP correct unittests
1 parent 4f440b4 commit 7b24a9c

File tree

8 files changed

+1170
-1301
lines changed

8 files changed

+1170
-1301
lines changed

jupyterlab_git/git.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ def changed_files(self, base=None, remote=None, single_commit=None):
201201

202202
response = {}
203203
try:
204-
_, output, error = yield execute(cmd, cwd=self.root_dir)
205-
response["files"] = output.strip().split("\n") + error.strip().split("\n")
204+
_, output, _ = yield execute(cmd, cwd=self.root_dir)
205+
response["files"] = output.strip().split("\n")
206206
response["code"] = 0
207207
except subprocess.CalledProcessError as e:
208208
response["message"] = e.output.decode("utf-8")
@@ -751,7 +751,7 @@ def pull(self, curr_fb_path, auth=None):
751751
if auth:
752752
env["GIT_TERMINAL_PROMPT"] = "1"
753753
code, error = yield execute_with_authentication(
754-
["git", "pull" "--no-commit"],
754+
["git", "pull", "--no-commit"],
755755
username=auth["username"],
756756
password=auth["password"],
757757
cwd=os.path.join(self.root_dir, curr_fb_path),

0 commit comments

Comments
 (0)