Commit Graph

118727 Commits

Author SHA1 Message Date
Johannes Schindelin
a180c19b41 Merge pull request #3076 from dennisameling/git-credential-manager-core-arm64
git-artifacts: add workaround for GCM Core on ARM64
2021-03-15 21:48:51 +01:00
Johannes Schindelin
b19d18fe8b Merge pull request #3053 from dscho/assorted-git-artifacts-fixes
Assorted fixes/enhancements for the `git-artifacts` workflow
2021-03-15 21:48:50 +01:00
Johannes Schindelin
e6fb4be780 Merge pull request #3056 from dscho/cmake-and-skip-dashed-built-ins
Teach our CMake configuration to optionally skip hard-linking the dashed built-ins
2021-03-15 21:48:50 +01:00
Johannes Schindelin
176c99e4d8 Merge pull request #3017 from dennisameling/add-arm64-artifacts
git-artifacts: add ARM64 artifacts
2021-03-15 21:48:50 +01:00
Johannes Schindelin
6d759543f8 Merge pull request #2586 from dscho/build-git-artifacts
Add a GitHub workflow to generate Git for Windows' installer, portable Git, MinGit, etc
2021-03-15 21:48:49 +01:00
Johannes Schindelin
2f7a6e10e2 Merge pull request #2971 from dennisameling/vcpkg-dlls
cmake(install): include vcpkg dlls
2021-03-15 21:48:49 +01:00
Johannes Schindelin
91014dfff6 Merge pull request #2966 from dennisameling/fix-double-exe
Fix double .exe suffixes in CMakeLists.txt
2021-03-15 21:48:49 +01:00
Johannes Schindelin
ddd9fb4a59 Merge pull request #2915 from dennisameling/windows-arm64-support
Windows arm64 support
2021-03-15 21:48:48 +01:00
Dennis Ameling
01ab3fe9f6 Add schannel to curl installation
Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
2021-03-15 21:48:43 +01:00
Dennis Ameling
1fc5528ab7 ci(vs-build) also build Windows/ARM64 artifacts
There are no Windows/ARM64 agents in GitHub Actions yet, therefore we
just skip adjusting the `vs-test` job for now.

Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:48:43 +01:00
Dennis Ameling
871fbe2efa GitHub Actions: Add vcpkg initialization step
This commit adds a step called "initialize vcpkg" to the GitHub Actions
workflow, because we need some build scripts from vcpkg that aren't
present in our vcpkg artifacts from Azure Pipelines.

Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
2021-03-15 21:45:45 +01:00
Johannes Schindelin
cf7c93723b cmake: work around recent vcpkg update
In f1f5dff9e7 (cmake: installation support for git, 2020-06-26), we
added support for the CMake equivalent of `make install` that makes
use of multiple targets within one invocation of `install(TARGETS ...).
This is totally fine according to CMake's documentation at
https://cmake.org/cmake/help/latest/command/install.html#command:install).

And this was still fine even after ecf7ee3cd5 (cmake(install):
include vcpkg dlls, 2021-01-08) where we started to use `vcpkg`'s CMake
scripts to ensure that the `.dll` files of Git's dependencies are also
installed.

However, with a recent update of `vcpkg`, the handling of local
dependencies was changed in a way that is incompatible with our CMake
definition. The symptom looks like this:

CMake Error at <worktree>/compat/vcbuild/vcpkg/scripts/buildsystems/vcpkg.cmake:734 (get_target_property):
  get_target_property() called with non-existent target "git;git-shell".
Call Stack (most recent call first):
  <worktree>/compat/vcbuild/vcpkg/scripts/buildsystems/vcpkg.cmake:784 (x_vcpkg_install_local_dependencies)
  CMakeLists.txt:821 (install)

The apparent reason for this breakage is that the `vcpkg` changes in
https://github.com/microsoft/vcpkg/commit/1bb5ea10a3 no longer allows an
arbitrary number of targets to be specified in `install(TARGETS ...)`.

Let's work around this by feeding the target individually to the
`install(TARGETS ...)` function.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:45:31 +01:00
Dennis Ameling
7ffb8ccbdc cmake(install): include vcpkg dlls
Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
2021-03-15 21:45:30 +01:00
Johannes Schindelin
958f0be53b Merge pull request #2351 from PhilipOakley/vcpkg-tip
Vcpkg Install: detect lack of working Git, and note possible vcpkg time outs
2021-03-15 21:43:27 +01:00
Johannes Schindelin
3d42800d11 Merge pull request #3040 from dennisameling/vs-build-no-gettext
.github: build vs-build with NO_GETTEXT
2021-03-15 21:43:26 +01:00
Johannes Schindelin
12e56cd533 Merge pull request #2974 from derrickstolee/maintenance-and-headless
Include Windows-specific maintenance and headless-git
2021-03-15 21:43:26 +01:00
Johannes Schindelin
06fbe65ddf Merge 'git-gui/js/intent-to-add'
This merges the current version of the patch that tries to address Git
GUI's problems with intent-to-add files.

This patch will likely be improved substantially before it is merged
into Git GUI's main branch, but we want to have _something_ resembling a
fix already in Git for Windows v2.29.0.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:26 +01:00
Johannes Schindelin
36d04639bb Merge branch 'prompt-and-set-u'
Allow GIT_PS1_COMPRESSSPARSESTATE to be unset

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:26 +01:00
Johannes Schindelin
bd91031d46 Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
t/t0014: fix: eliminate additional lines from trace
2021-03-15 21:43:25 +01:00
Johannes Schindelin
04e3386877 Merge pull request #2714 from lbonanomi/main
Rationalize line endings for scissors-cleanup
2021-03-15 21:43:25 +01:00
Johannes Schindelin
8530c643fd Merge pull request #2730 from dscho/crlf-aware-git-add-i
git add -i: handle CR/LF line endings in the interactive input
2021-03-15 21:43:25 +01:00
Johannes Schindelin
14b77d0576 Merge 'add-p-many-files'
This topic branch allows `add -p` and `add -i` with a large number of
files. It is kind of a hack that was never really meant to be
upstreamed. Let's see if we can do better in the built-in `add -p`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:24 +01:00
Johannes Schindelin
46e41c7c3d Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
ci: avoid d/f conflict in vs/master
2021-03-15 21:43:24 +01:00
Johannes Schindelin
8f9014536a Merge pull request #2535 from dscho/schannel-revoke-best-effort
Introduce and use the new "best effort" strategy for Secure Channel revoke checking
2021-03-15 21:43:24 +01:00
Johannes Schindelin
4abcf5c46c Merge pull request #2506 from dscho/issue-2283
Allow running Git directly from `C:\Program Files\Git\mingw64\bin\git.exe`
2021-03-15 21:43:24 +01:00
Johannes Schindelin
863dccb874 Merge pull request #2504 from dscho/access-repo-via-junction
Handle `git add <file>` where <file> traverses an NTFS junction
2021-03-15 21:43:23 +01:00
Johannes Schindelin
5969fc9f46 Merge pull request #2501 from jeffhostetler/clink-debug-curl
clink.pl: fix MSVC compile script to handle libcurl-d.lib
2021-03-15 21:43:23 +01:00
Johannes Schindelin
77733f18b4 Merge pull request #2488 from bmueller84/master
mingw: fix fatal error working on mapped network drives on Windows
2021-03-15 21:43:23 +01:00
Johannes Schindelin
fd71947da3 Merge pull request #2449 from dscho/mingw-getcwd-and-symlinks
Do resolve symlinks in `getcwd()`
2021-03-15 21:43:22 +01:00
Johannes Schindelin
f60fdea415 Merge pull request #2405 from dscho/mingw-setsockopt
Make sure `errno` is set when socket operations fail
2021-03-15 21:43:22 +01:00
Johannes Schindelin
b3316edd26 Merge pull request #2375 from assarbad/reintroduce-sideband-config
Config option to disable side-band-64k for transport
2021-03-15 21:43:22 +01:00
Johannes Schindelin
f5d936d391 Merge branch 'msys2-python'
In MSYS2, we have two Python interpreters at our disposal, so we can
include the Python stuff in the build.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:22 +01:00
Johannes Schindelin
241f66eeec Merge branch 'move-gfw-system-config-to-top-level'
Make `git config --system` work like you think it should on Windows: it
should edit the file that is located in `<Git>\etc\gitconfig`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:21 +01:00
Johannes Schindelin
343270852b Merge pull request #2316 from carenas/win-pcre1-cleanup
config.mak.uname: PCRE1 cleanup
2021-03-15 21:43:21 +01:00
Johannes Schindelin
4d140496a8 Merge branch 'dont-clean-junctions'
This topic branch teaches `git clean` to respect NTFS junctions and Unix
bind mounts: it will now stop at those boundaries.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:21 +01:00
Johannes Schindelin
f9f3386e6f Merge pull request #2170 from dscho/gitk-long-cmdline
Fix gitk (long cmdline)
2021-03-15 21:43:20 +01:00
Johannes Schindelin
2d240b2154 Merge branch 'fsync-object-files-always'
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:20 +01:00
Johannes Schindelin
1b5d56652f Merge branch 'dont-spawn-gzip-in-archive'
This topic branch avoids spawning `gzip` when asking `git archive` to
create `.tar.gz` files.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:20 +01:00
Johannes Schindelin
5a68bbd84b Merge branch 'mingw-expand-absolute-user-path'
When compiling Git with a runtime prefix (so that it can be installed
into any location, finding its libexec/ directory relative to the
location of the `git` executable), it is convenient to provide
"absolute" Unix-y paths e.g. for http.sslCAInfo, and have those absolute
paths be resolved relative to the runtime prefix.

This patch makes it so for Windows. It is up for discussion whether we
want this for other platforms, too, as long as building with
RUNTIME_PREFIX.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:20 +01:00
Johannes Schindelin
5a0c00f018 Merge branch 'drive-prefix'
This topic branch allows us to specify absolute paths without the drive
prefix e.g. when cloning.

Example:

	C:\Users\me> git clone https://github.com/git/git \upstream-git

This will clone into a new directory C:\upstream-git, in line with how
Windows interprets absolute paths.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:19 +01:00
Johannes Schindelin
06f5d55ea9 Merge 'remote-hg-prerequisites' into HEAD
These fixes were necessary for Sverre Rabbelier's remote-hg to work,
but for some magic reason they are not necessary for the current
remote-hg. Makes you wonder how that one gets away with it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:19 +01:00
Dennis Ameling
abffabead2 git-artifacts: add workaround for GCM Core on ARM64
Since there is no GCM Core for ARM64, let's just install a simple shell
script that calls the i686 version for now.

Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:14 +01:00
Johannes Schindelin
54350075ae git-artifacts: Use the shiny new setup-git-for-windows-sdk Action
This simplifies the workflow dramatically.

Note that we have to reinstate that `/usr/bin/git` hack (a shell script
that simply redirects to `/mingw64/bin/git.exe`) in the `pkg` job
manually, since we no longer cache the `build-installers` artifact
_after_ installing that hack in `bundle-artifacts`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:14 +01:00
Johannes Schindelin
dddd761bb0 git-artifacts(build-arm64): build artifacts using the intended Git revision
We cannot just check out the current revision: The user might have
overridden `REPOSITORY` and `REF` via the workflow dispatch.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:14 +01:00
Johannes Schindelin
26480fb85b git-artifacts: mark all inputs as "not required"
This workflow needs to be triggered manually, and it offers to specify a
couple input parameters. But none of them are required. Make that
explicit.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:14 +01:00
Johannes Schindelin
652425e697 git-artifacts: extend the SKIP logic to handle pkg and build-arm64
When the user asked for `installer-x86_64`, there is no point in
building `pkg-i686` or `build-arm64`; Let's be a bit smarter about this.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:14 +01:00
Johannes Schindelin
3ee4fb2456 git-artifacts(arm64): avoid hard-linking the dashed built-ins
The archive and MinGit variants really get bloated because they handle
those as straight copies instead of hard-links.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:13 +01:00
Dennis Ameling
7a086bba86 git-artifacts: add ARM64 artifacts
Adds ARM64 artifacts to the git-artifacts GitHub Action workflow.

Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:13 +01:00
Johannes Schindelin
2f7416c3ac git-artifacts: use the cached build-installers instead of makepkg-git
When building the Pacman packages, we technically do not need the full
`build-installers` artifact (which is substantially larger than the
`makepkg-git` artifact). However, the former is already cached and
includes the latter's files. And it is _so_ much faster to download the
cached (larger) artifact than to download the smaller `makepkg-git`
artifact from Azure Pipelines.

Suggested-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:13 +01:00
Johannes Schindelin
1abfb8f646 git-artifacts: fix BUILD_ONLY handling for ARM64
The workflow allows users to restrict what parts are being built. For
example, `installer-i686` will build only the 32-bit installer, not the
64-bit one nor any MinGit flavor.

However, this logic was not extended when introducing support for ARM64:
Instead, we _also_ built the ARM64 installer when the user asked for
`installer-i686`.

Let's allow restricting to `installer-i686` _without_ building the ARM64
version, and allow restricting to `installer-arm64` _just_ for the ARM64
version.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 21:43:13 +01:00