Skip to content

Commit 9933300

Browse files
committed
Merge 'origin/main' into v2.40.1.windows.1
By necessity, the patches leading up to an embargoed Git for Windows release deviate from its public `main` branch, as was the case for v2.40.1, too. Here, I merge the `main` branch onto the tagged Git for Windows v2.40.1 (as opposed to the opposite direction, which intuition would suggest), to make sure that `git show HEAD^{/Start.the.merging-rebase}` will find the latest merging-rebase on the first-parent ancestry. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents ceee26d + bc3743d commit 9933300

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

git-gui/git-gui.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ proc _which {what args} {
108108
109109
if {[is_Windows] && [lsearch -exact $args -script] >= 0} {
110110
set suffix {}
111+
} elseif {[string match *$_search_exe $what]} {
112+
# The search string already has the file extension
113+
set suffix {}
111114
} else {
112115
set suffix $_search_exe
113116
}

path.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -739,12 +739,6 @@ char *interpolate_path(const char *path, int real_home)
739739
if (skip_prefix(path, "%(prefix)/", &path))
740740
return system_path(path);
741741

742-
#ifdef __MINGW32__
743-
if (path[0] == '/') {
744-
warning(_("encountered old-style '%s' that should be '%%(prefix)/%s'"), path, path);
745-
return system_path(path + 1);
746-
}
747-
#endif
748742
if (path[0] == '~') {
749743
const char *first_slash = strchrnul(path, '/');
750744
const char *username = path + 1;

0 commit comments

Comments
 (0)