Skip to content

Commit ebf5c46

Browse files
authored
git: sync with MSYS2 (#188)
There have been a couple of edits in upstream MSYS2 which we need to integrate into Git for Windows' fork, lest the next Git for Windows version sync will overwrite those edits. This change requires git-for-windows/build-extra#685 to be merged first.
2 parents 3317552 + ca7fa13 commit ebf5c46

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

mingw-w64-git/PKGBUILD

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ pkgdesc="The fast distributed version control system (mingw-w64)"
2424
arch=('any')
2525
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
2626
url="https://gitforwindows.org/"
27+
msys2_references=(
28+
"cpe: cpe:/a:git-scm:git"
29+
"cpe: cpe:/a:git:git"
30+
"cpe: cpe:/a:git_project:git"
31+
)
2732
license=('GPL2')
2833

2934
options=()
@@ -97,6 +102,7 @@ else
97102
fi
98103

99104
SHAREDIR=$MINGW_PREFIX/share/git
105+
_DEFAULT_EDITOR="${_DEFAULT_EDITOR:-nano}"
100106

101107
prepare () {
102108
cd "$srcdir/git" &&
@@ -106,6 +112,7 @@ prepare () {
106112
USE_ASCIIDOCTOR = YesPlease
107113
COMPAT_CFLAGS += $COMPAT_CFLAGS
108114
LDFLAGS = $LDFLAGS
115+
DEFAULT_EDITOR = $_DEFAULT_EDITOR
109116
EOF
110117

111118
cp ../git-bash.adoc Documentation/
@@ -169,7 +176,8 @@ package_git () {
169176
"${MINGW_PACKAGE_PREFIX}-ca-certificates"
170177
"${MINGW_PACKAGE_PREFIX}-expat>=2.0"
171178
"${MINGW_PACKAGE_PREFIX}-openssl"
172-
"${MINGW_PACKAGE_PREFIX}-pcre2")
179+
"${MINGW_PACKAGE_PREFIX}-pcre2"
180+
"$_DEFAULT_EDITOR")
173181

174182
cd "$srcdir"/git
175183

0 commit comments

Comments
 (0)