From c3aa1bc12367a8c29ddac310d8bb86ae10719bd2 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 15 Jul 2024 14:18:19 +1000 Subject: [PATCH] Fix typo in git source handling Fixes #171 Signed-off-by: Allan McRae --- scripts/libmakepkg/source/git.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/libmakepkg/source/git.sh.in b/scripts/libmakepkg/source/git.sh.in index 35e31fc1..d9c2416e 100644 --- a/scripts/libmakepkg/source/git.sh.in +++ b/scripts/libmakepkg/source/git.sh.in @@ -49,7 +49,7 @@ download_git() { if [[ ! -d "$dir" ]] || dir_is_empty "$dir" ; then msg2 "$(gettext "Cloning %s %s repo...")" "${repo}" "git" - if ! git clone --origin=origin ---mirror "$url" "$dir"; then + if ! git clone --origin=origin --mirror "$url" "$dir"; then error "$(gettext "Failure while downloading %s %s repo")" "${repo}" "git" plainerr "$(gettext "Aborting...")" exit 1