Skip to content

Commit 8c1b262

Browse files
committed
correctly name variable
1 parent c48326b commit 8c1b262

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

jupyterlab_git/git.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async def execute(
2525
password: "Optional[str]" = None,
2626
) -> "Tuple[int, str, str]":
2727
"""Asynchronously execute a command.
28-
28+
2929
Args:
3030
cmdline (List[str]): Command line to be executed
3131
cwd (Optional[str]): Current working directory
@@ -113,7 +113,7 @@ def __init__(self, contents_manager):
113113

114114
async def config(self, top_repo_path, **kwargs):
115115
"""Get or set Git options.
116-
116+
117117
If no kwargs, all options are returned. Otherwise kwargs are set.
118118
"""
119119
response = {"code": 1}
@@ -154,12 +154,12 @@ async def changed_files(self, base=None, remote=None, single_commit=None):
154154
There are two reserved "refs" for the base
155155
1. WORKING : Represents the Git working tree
156156
2. INDEX: Represents the Git staging area / index
157-
157+
158158
Keyword Arguments:
159159
single_commit {string} -- The single commit ref
160160
base {string} -- the base Git ref
161161
remote {string} -- the remote Git ref
162-
162+
163163
Returns:
164164
dict -- the response of format {
165165
"code": int, # Command status code
@@ -602,12 +602,12 @@ async def add_all_untracked(self, top_repo_path):
602602
if status["code"] != 0:
603603
return status
604604

605-
unstaged = []
605+
untracked = []
606606
for f in status["files"]:
607607
if f["x"]=="?" and f["y"]=="?":
608-
unstaged.append(f["from"].strip('"'))
608+
untracked.append(f["from"].strip('"'))
609609

610-
return await self.add(unstaged, top_repo_path)
610+
return await self.add(untracked, top_repo_path)
611611

612612
async def reset(self, filename, top_repo_path):
613613
"""

0 commit comments

Comments
 (0)