gitreef

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a8e7d15abb6a74fd63d7c61cf4946078e40d1264
parent 0a933e445a680c40e2a75b4235a2aa08545f9c17
Author: Matthias Jaros <jaros@mailbox.org>
Date:   Sun, 26 Oct 2025 08:41:47 +0100

Better error handling

Diffstat:
Msrc/init | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/init b/src/init @@ -53,13 +53,13 @@ end function setupRepo set -l repoConfig $argv[1] - set -l parsedConfig (string split ':' $repoConfig) + set -l parsedConfig (string split ':' -- $repoConfig) set -l repo $parsedConfig[1] # check repo name - set -l matcher (string match -r -g "^$_REPO_VALIDATION_REGEX\$" $repo) + set -l matcher (string match -r -g "^$_REPO_VALIDATION_REGEX\$" -- $repo) if test -z $matcher[1] - echo "Failed to setup repo, invalid path/name: $repo" + echo "Failed to setup repo, invalid config: $repoConfig" return 1 end