Skip to content

Commit 50bfad6

Browse files
reckless: correct direct install from local repo subdirectory
1 parent 12b2db5 commit 50bfad6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/reckless

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,13 +1398,13 @@ def install(plugin_name: str) -> Union[str, None]:
13981398
src = None
13991399
if direct_location:
14001400
logging.debug(f"install of {name} requested from {direct_location}")
1401-
src = InstInfo(name, direct_location, None)
1402-
if not src.get_inst_details():
1403-
src = None
1401+
src = InstInfo(name, direct_location, name)
14041402
# Treating a local git repo as a directory allows testing
14051403
# uncommitted changes.
14061404
if src and src.srctype == Source.LOCAL_REPO:
14071405
src.srctype = Source.DIRECTORY
1406+
if not src.get_inst_details():
1407+
src = None
14081408
if not direct_location or not src:
14091409
log.debug(f"Searching for {name}")
14101410
if search(name):

0 commit comments

Comments
 (0)