File: fix-git-script-typo.patch

package info (click to toggle)
pacman-package-manager 7.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,672 kB
  • sloc: ansic: 23,737; sh: 6,190; python: 6,046; perl: 149; makefile: 15
file content (20 lines) | stat: -rw-r--r-- 848 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fix typo in git source handling (---mirror instead of --mirror)
Author: Allan McRae <allan@archlinux.org>
Origin: upstream
Bug: https://gitlab.archlinux.org/pacman/pacman/-/issues/171
Bug-Debian: https://bugs.debian.org/1110910
Applied-Upstream: c3aa1bc12367a8c29ddac310d8bb86ae10719bd2
Reviewed-by: Ben Westover <me@benthetechguy.net>
Last-Update: 2025-10-18

--- a/scripts/libmakepkg/source/git.sh.in
+++ b/scripts/libmakepkg/source/git.sh.in
@@ -49,7 +49,7 @@
 
 	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