From 765761c5bf49799e7d74535b9727062c869fc358 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Fri, 22 Dec 2023 15:51:14 +0100 Subject: commands: simplify CompletePath This function is overly complex, has code duplication and is not preserving user input (converting all paths to absolute paths). Simplify it and avoid converting relative paths to absolute ones. Add unit tests to ensure it works as expected. Signed-off-by: Robin Jarry Tested-by: Bence Ferdinandy --- commands/testdata/.keep-me | 1 + 1 file changed, 1 insertion(+) create mode 100644 commands/testdata/.keep-me (limited to 'commands/testdata/.keep-me') diff --git a/commands/testdata/.keep-me b/commands/testdata/.keep-me new file mode 100644 index 00000000..b35a57ea --- /dev/null +++ b/commands/testdata/.keep-me @@ -0,0 +1 @@ +This file is used by unit tests -- cgit