Skip to content

Commit bb15d03

Browse files
committed
merge and conflict resolution from vs/master
2 parents 2ec5349 + 9fb3edf commit bb15d03

File tree

12 files changed

+38
-17
lines changed

12 files changed

+38
-17
lines changed

Documentation/RelNotes/2.16.1.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Git v2.16.1 Release Notes
2+
=========================
3+
4+
Fixes since v2.16
5+
-----------------
6+
7+
* "git clone" segfaulted when cloning a project that happens to
8+
track two paths that differ only in case on a case insensitive
9+
filesystem.
10+
11+
Does not contain any other documentation updates or code clean-ups.

GIT-VERSION-GEN

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
GVF=GIT-VERSION-FILE
4-
DEF_VER=v2.16.0
4+
DEF_VER=v2.16.1
55

66
LF='
77
'

RelNotes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Documentation/RelNotes/2.16.0.txt
1+
Documentation/RelNotes/2.16.1.txt

builtin/checkout.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ static int checkout_paths(const struct checkout_opts *opts,
359359
state.istate = &the_index;
360360

361361
enable_delayed_checkout(&state);
362-
enable_fscache(1);
363362
for (pos = 0; pos < active_nr; pos++) {
364363
struct cache_entry *ce = active_cache[pos];
365364
if (ce->ce_flags & CE_MATCHED) {
@@ -374,7 +373,6 @@ static int checkout_paths(const struct checkout_opts *opts,
374373
pos = skip_same_name(ce, pos) - 1;
375374
}
376375
}
377-
enable_fscache(0);
378376
errs |= finish_delayed_checkout(&state);
379377

380378
if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))

builtin/reset.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ static int reset_index(const struct object_id *oid, int reset_type, int quiet)
5252
struct tree *tree;
5353
struct unpack_trees_options opts;
5454
int ret = -1;
55-
int unpack_result;
5655

5756
memset(&opts, 0, sizeof(opts));
5857
opts.head_idx = 1;
@@ -92,11 +91,7 @@ static int reset_index(const struct object_id *oid, int reset_type, int quiet)
9291
}
9392
nr++;
9493

95-
enable_fscache(1);
96-
unpack_result = unpack_trees(nr, desc, &opts);
97-
enable_fscache(0);
98-
99-
if (unpack_result)
94+
if (unpack_trees(nr, desc, &opts))
10095
goto out;
10196

10297
if (reset_type == MIXED || reset_type == HARD) {

git-cvsserver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use File::Path qw/rmtree/;
2727
use File::Basename;
2828
use Getopt::Long qw(:config require_order no_ignore_case);
2929

30-
my $VERSION = '2.15.1.windows.2.1430.ga56c4f9e2a.dirty.MSVC';
30+
my $VERSION = '2.16.0.windows.2.1027.g1a4ee4d5d8.dirty.MSVC';
3131

3232
my $log = GITCVS::log->new();
3333
my $cfg;

git-send-email

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ sub send_message {
12901290
@recipients = unique_email_list(@recipients,@cc,@bcclist);
12911291
@recipients = (map { extract_valid_address_or_die($_) } @recipients);
12921292
my $date = format_2822_time($time++);
1293-
my $gitversion = '2.15.1.windows.2.1430.ga56c4f9e2a.dirty.MSVC';
1293+
my $gitversion = '2.16.0.windows.2.1027.g1a4ee4d5d8.dirty.MSVC';
12941294
if ($gitversion =~ m/..GIT_VERSION../) {
12951295
$gitversion = Git::version();
12961296
}

git-svn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use vars qw/ $AUTHOR $VERSION
99
$sha1 $sha1_short $_revision $_repository
1010
$_q $_authors $_authors_prog %users/;
1111
$AUTHOR = 'Eric Wong <[email protected]>';
12-
$VERSION = '2.15.1.windows.2.1430.ga56c4f9e2a.dirty.MSVC';
12+
$VERSION = '2.16.0.windows.2.1027.g1a4ee4d5d8.dirty.MSVC';
1313

1414
use Carp qw/croak/;
1515
use File::Basename qw/dirname basename/;

libgit/libgit.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
9595
<ClCompile>
9696
<Optimization>Disabled</Optimization>
97-
<PreprocessorDefinitions>WIN32;_DEBUG;BINDIR="bin";DEFAULT_HELP_FORMAT="html";DETECT_MSYS_TTY;ETC_GITATTRIBUTES="etc/gitattributes";ETC_GITCONFIG="etc/gitconfig";FALLBACK_RUNTIME_PREFIX="/mingw64";GAWK;GIT_BUILT_FROM_COMMIT="a56c4f9e2a9513d2be57dc4346e0e84887399cd9";GIT_EXEC_PATH="libexec/git-core";GIT_HOST_CPU="x86_64";GIT_LOCALE_PATH="share/locale";GIT_USER_AGENT="git/2.15.1.windows.2.1430.ga56c4f9e2a.MSVC";GIT_VERSION="2.15.1.windows.2.1430.ga56c4f9e2a.MSVC";HAVE_ALLOCA_H;HAVE_STRING_H;MMAP_PREVENTS_DELETE;NATIVE_CRLF;NDEBUG;NOGDI;NO_GETTEXT;NO_INET_NTOP;NO_INET_PTON;NO_INTTYPES_H;NO_IPV6;NO_LIBGEN_H;NO_MBSUPPORT;NO_MEMMEM;NO_MKDTEMP;NO_POLL;NO_POSIX_GOODIES;NO_PREAD;NO_SETENV;NO_STRCASESTR;NO_STRLCPY;NO_STRTOUMAX;NO_ST_BLOCKS_IN_STRUCT_STAT;NO_SYMLINK_HEAD;NO_SYS_POLL_H;OBJECT_CREATION_MODE=1;PAGER_ENV="LESS=FRX LV=-c";PROTECT_NTFS_DEFAULT=1;RUNTIME_PREFIX;SHA1DC_CUSTOM_INCLUDE_SHA1_C="cache.h";SHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C="git-compat-util.h";SHA1DC_INIT_SAFE_HASH_DEFAULT=0;SHA1DC_NO_STANDARD_INCLUDES;SHA1_DC;SHELL_PATH="/bin/sh";STRIP_EXTENSION=".exe";UNRELIABLE_FSTAT;USE_CURL_FOR_IMAP_SEND;USE_WIN32_MMAP;WIN32;_CONSOLE;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;__USE_MINGW_ACCESS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
97+
<PreprocessorDefinitions>WIN32;_DEBUG;BINDIR="bin";DEFAULT_HELP_FORMAT="html";DETECT_MSYS_TTY;ETC_GITATTRIBUTES="etc/gitattributes";ETC_GITCONFIG="etc/gitconfig";FALLBACK_RUNTIME_PREFIX="/mingw64";GAWK;GIT_BUILT_FROM_COMMIT="1a4ee4d5d83bbba63f6d8b71c427f627769f3386";GIT_EXEC_PATH="libexec/git-core";GIT_HOST_CPU="x86_64";GIT_LOCALE_PATH="share/locale";GIT_USER_AGENT="git/2.16.0.windows.2.1027.g1a4ee4d5d8.MSVC";GIT_VERSION="2.16.0.windows.2.1027.g1a4ee4d5d8.MSVC";HAVE_ALLOCA_H;HAVE_STRING_H;MMAP_PREVENTS_DELETE;NATIVE_CRLF;NDEBUG;NOGDI;NO_GETTEXT;NO_INET_NTOP;NO_INET_PTON;NO_INTTYPES_H;NO_IPV6;NO_LIBGEN_H;NO_MBSUPPORT;NO_MEMMEM;NO_MKDTEMP;NO_POLL;NO_POSIX_GOODIES;NO_PREAD;NO_SETENV;NO_STRCASESTR;NO_STRLCPY;NO_STRTOUMAX;NO_ST_BLOCKS_IN_STRUCT_STAT;NO_SYMLINK_HEAD;NO_SYS_POLL_H;OBJECT_CREATION_MODE=1;PAGER_ENV="LESS=FRX LV=-c";PROTECT_NTFS_DEFAULT=1;RUNTIME_PREFIX;SHA1DC_CUSTOM_INCLUDE_SHA1_C="cache.h";SHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C="git-compat-util.h";SHA1DC_INIT_SAFE_HASH_DEFAULT=0;SHA1DC_NO_STANDARD_INCLUDES;SHA1_DC;SHELL_PATH="/bin/sh";STRIP_EXTENSION=".exe";UNRELIABLE_FSTAT;USE_CURL_FOR_IMAP_SEND;USE_WIN32_MMAP;WIN32;_CONSOLE;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;__USE_MINGW_ACCESS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
9898
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
9999
</ClCompile>
100100
<Link>
@@ -105,7 +105,7 @@
105105
<ClCompile>
106106
<Optimization>MaxSpeed</Optimization>
107107
<IntrinsicFunctions>true</IntrinsicFunctions>
108-
<PreprocessorDefinitions>WIN32;NDEBUG;BINDIR="bin";DEFAULT_HELP_FORMAT="html";DETECT_MSYS_TTY;ETC_GITATTRIBUTES="etc/gitattributes";ETC_GITCONFIG="etc/gitconfig";FALLBACK_RUNTIME_PREFIX="/mingw64";GAWK;GIT_BUILT_FROM_COMMIT="a56c4f9e2a9513d2be57dc4346e0e84887399cd9";GIT_EXEC_PATH="libexec/git-core";GIT_HOST_CPU="x86_64";GIT_LOCALE_PATH="share/locale";GIT_USER_AGENT="git/2.15.1.windows.2.1430.ga56c4f9e2a.MSVC";GIT_VERSION="2.15.1.windows.2.1430.ga56c4f9e2a.MSVC";HAVE_ALLOCA_H;HAVE_STRING_H;MMAP_PREVENTS_DELETE;NATIVE_CRLF;NDEBUG;NOGDI;NO_GETTEXT;NO_INET_NTOP;NO_INET_PTON;NO_INTTYPES_H;NO_IPV6;NO_LIBGEN_H;NO_MBSUPPORT;NO_MEMMEM;NO_MKDTEMP;NO_POLL;NO_POSIX_GOODIES;NO_PREAD;NO_SETENV;NO_STRCASESTR;NO_STRLCPY;NO_STRTOUMAX;NO_ST_BLOCKS_IN_STRUCT_STAT;NO_SYMLINK_HEAD;NO_SYS_POLL_H;OBJECT_CREATION_MODE=1;PAGER_ENV="LESS=FRX LV=-c";PROTECT_NTFS_DEFAULT=1;RUNTIME_PREFIX;SHA1DC_CUSTOM_INCLUDE_SHA1_C="cache.h";SHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C="git-compat-util.h";SHA1DC_INIT_SAFE_HASH_DEFAULT=0;SHA1DC_NO_STANDARD_INCLUDES;SHA1_DC;SHELL_PATH="/bin/sh";STRIP_EXTENSION=".exe";UNRELIABLE_FSTAT;USE_CURL_FOR_IMAP_SEND;USE_WIN32_MMAP;WIN32;_CONSOLE;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;__USE_MINGW_ACCESS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
108+
<PreprocessorDefinitions>WIN32;NDEBUG;BINDIR="bin";DEFAULT_HELP_FORMAT="html";DETECT_MSYS_TTY;ETC_GITATTRIBUTES="etc/gitattributes";ETC_GITCONFIG="etc/gitconfig";FALLBACK_RUNTIME_PREFIX="/mingw64";GAWK;GIT_BUILT_FROM_COMMIT="1a4ee4d5d83bbba63f6d8b71c427f627769f3386";GIT_EXEC_PATH="libexec/git-core";GIT_HOST_CPU="x86_64";GIT_LOCALE_PATH="share/locale";GIT_USER_AGENT="git/2.16.0.windows.2.1027.g1a4ee4d5d8.MSVC";GIT_VERSION="2.16.0.windows.2.1027.g1a4ee4d5d8.MSVC";HAVE_ALLOCA_H;HAVE_STRING_H;MMAP_PREVENTS_DELETE;NATIVE_CRLF;NDEBUG;NOGDI;NO_GETTEXT;NO_INET_NTOP;NO_INET_PTON;NO_INTTYPES_H;NO_IPV6;NO_LIBGEN_H;NO_MBSUPPORT;NO_MEMMEM;NO_MKDTEMP;NO_POLL;NO_POSIX_GOODIES;NO_PREAD;NO_SETENV;NO_STRCASESTR;NO_STRLCPY;NO_STRTOUMAX;NO_ST_BLOCKS_IN_STRUCT_STAT;NO_SYMLINK_HEAD;NO_SYS_POLL_H;OBJECT_CREATION_MODE=1;PAGER_ENV="LESS=FRX LV=-c";PROTECT_NTFS_DEFAULT=1;RUNTIME_PREFIX;SHA1DC_CUSTOM_INCLUDE_SHA1_C="cache.h";SHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C="git-compat-util.h";SHA1DC_INIT_SAFE_HASH_DEFAULT=0;SHA1DC_NO_STANDARD_INCLUDES;SHA1_DC;SHELL_PATH="/bin/sh";STRIP_EXTENSION=".exe";UNRELIABLE_FSTAT;USE_CURL_FOR_IMAP_SEND;USE_WIN32_MMAP;WIN32;_CONSOLE;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;__USE_MINGW_ACCESS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
109109
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
110110
<FunctionLevelLinking>true</FunctionLevelLinking>
111111
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>

repository.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/* The main repository */
77
static struct repository the_repo = {
8-
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &the_index, NULL, 0, 0
8+
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &the_index, &hash_algos[GIT_HASH_SHA1], 0, 0
99
};
1010
struct repository *the_repository = &the_repo;
1111

t/t5601-clone.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,4 +611,21 @@ test_expect_success 'GIT_TRACE_PACKFILE produces a usable pack' '
611611
git -C replay.git index-pack -v --stdin <tmp.pack
612612
'
613613

614+
hex2oct () {
615+
perl -ne 'printf "\\%03o", hex for /../g'
616+
}
617+
618+
test_expect_success 'clone on case-insensitive fs' '
619+
git init icasefs &&
620+
(
621+
cd icasefs
622+
o=$(git hash-object -w --stdin </dev/null | hex2oct) &&
623+
t=$(printf "100644 X\0${o}100644 x\0${o}" |
624+
git hash-object -w -t tree --stdin) &&
625+
c=$(git commit-tree -m bogus $t) &&
626+
git update-ref refs/heads/bogus $c &&
627+
git clone -b bogus . bogus
628+
)
629+
'
630+
614631
test_done

templates/boilerplates.made

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Wed, Jan 17, 2018 10:10:00 PM
1+
Mon, Jan 22, 2018 6:09:51 AM

0 commit comments

Comments
 (0)