Skip to content

Commit 8fc86e5

Browse files
authored
Merge pull request #389 from fcollonval/fix-387
Fix identity error
2 parents 8443ac0 + 994dc80 commit 8fc86e5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

jupyterlab_git/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def post(self):
432432
POST get (if no options are passed) or set configuration options
433433
"""
434434
data = self.get_json_body()
435-
top_repo_path = data["top_repo_path"]
435+
top_repo_path = data["path"]
436436
options = data.get("options", {})
437437
response = self.git.config(top_repo_path, **options)
438438

specification/Git_REST_API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Request JSON:
306306

307307
```bash
308308
{
309-
"top_repo_path": "/absolute/path/to/root/of/repo",
309+
"path": "/absolute/path/to/root/of/repo",
310310
"options": {
311311
"key1": "value1",
312312
"keyI": "valueI"

specification/Git_REST_API.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Request JSON:
262262

263263
```bash
264264
{
265-
"top_repo_path": "/absolute/path/to/root/of/repo",
265+
"path": "/absolute/path/to/root/of/repo",
266266
"options": {
267267
"key1": "value1",
268268
"keyI": "valueI"

tests/unit/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@patch("jupyterlab_git.handlers.GitConfigHandler.__init__", Mock(return_value=None))
1212
@patch(
1313
"jupyterlab_git.handlers.GitConfigHandler.get_json_body",
14-
Mock(return_value={"top_repo_path": "test_path"}),
14+
Mock(return_value={"path": "test_path"}),
1515
)
1616
@patch("jupyterlab_git.handlers.GitConfigHandler.git", Git("/bin"))
1717
@patch("jupyterlab_git.handlers.GitConfigHandler.finish")
@@ -61,7 +61,7 @@ def test_git_get_config_success(popen, finish):
6161
"jupyterlab_git.handlers.GitConfigHandler.get_json_body",
6262
Mock(
6363
return_value={
64-
"top_repo_path": "test_path",
64+
"path": "test_path",
6565
"options": {
6666
"user.name": "John Snow",
6767
"user.email": "[email protected]",

0 commit comments

Comments
 (0)